question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Client's auth token times out (StackOverflow)

See original GitHub issue

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:19 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
herbertrleecommented, Aug 8, 2016

@dhermes - Using gcloud 0.18.0 (previously 0.17.0), oauthclient 3.0.0 (previously 2.2.0), and grpcio 1.0.0rc1 (previously 0.15.0), I no longer seem to be able to reproduce this issue. I do still occasionally get auth errors, but I recover from them on subsequent attempts without needing to redeploy my app, which I can handle on my side. Thanks for your help and patience!

0reactions
dr3xcommented, May 5, 2017

Strange - based on the log - looks like it failed at an hour, even though the expiry showed it had more time?

Timeline: Start 00:00 Refresh 00:45 Auth Error 00:60 (which is 15 minutes after successfully invoking refresh)

… Inserting batch: 1337671, Table: Some_Table, Expiration: 0:45:01.936000 Inserting batch: 1338172, Table: Some_Table, Expiration: 0:45:00.733000

Traceback (most recent call last):
  File "quick_table_load.py", line 124, in <module>
    load_table(table_name)
  File "quick_table_load.py", line 110, in load_table
    insert_batch(table_name,col_names,chgs,tsv_arr)
  File "quick_table_load.py", line 80, in insert_batch
    values=tsv_arr)
  File "C:\src\github\python-docs-samples\env\lib\site-packages\google\cloud\spanner\database.py", line 462, in __exit__
    self._batch.commit()
  File "C:\src\github\python-docs-samples\env\lib\site-packages\google\cloud\spanner\batch.py", line 156, in commit
    options=options)
  File "C:\src\github\python-docs-samples\env\lib\site-packages\google\cloud\gapic\spanner\v1\spanner_client.py", line 832, in commit
    return self._commit(request, options)
  File "C:\src\github\python-docs-samples\env\lib\site-packages\google\gax\api_callable.py", line 428, in inner
    return api_caller(api_call, this_settings, request)
  File "C:\src\github\python-docs-samples\env\lib\site-packages\google\gax\api_callable.py", line 416, in base_caller
    return api_call(*args)
  File "C:\src\github\python-docs-samples\env\lib\site-packages\google\gax\api_callable.py", line 376, in inner
    return a_func(*args, **kwargs)
  File "C:\src\github\python-docs-samples\env\lib\site-packages\google\gax\retry.py", line 127, in inner
    ' classified as transient', exception)
google.gax.errors.RetryError: GaxError(Exception occurred in retry method that was not classified as transient, caused by <_Rendezvous of RPC that terminated with (StatusCode.UNAUTHENTICATED, Request
had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.
)>)

(env) C:\src\github\python-docs-samples>
Read more comments on GitHub >

github_iconTop Results From Across the Web

Request time out error when getting access token using MSAL ...
This has OAuth authentication and for that AppID is registered on the Azure portal. I am able to generate access token and communicate...
Read more >
The Authorization Code grant (in excruciating detail) Part 2 of 2
If it all checks out, mints a time bound access token, cryptographically signing it, and returns it to the OAuth token exchange component....
Read more >
How can I get the access token to use the StackOverflow Rest ...
1 Answer 1 · Copy the resulting URL from the large text area, open a new browser tab/window and paste the URL. You're...
Read more >
Authentication - Stack Exchange API
Access tokens can be passed (as access_token ) to any method to grant applications an increased throttle quota. When passing an access token...
Read more >
Using OAuth authentication with your application - Zendesk help
Click the OAuth Clients tab on the Zendesk API page, and then click ... and password in order to request the OAuth token...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found