-
Notifications
You must be signed in to change notification settings - Fork 314
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
verify_oauth2_token takes a minute to complete #566
Comments
Hi @bemineni, Was this faster in previous versions of the library? |
I started to use this library for the first time recently for new project development. I see a delay only in the very first call. Is there any way I can debug and provide you more logs. |
Hmm, the only network call that's being made is to fetch the certificates, and I wouldn't expect it to take that long. google-auth-library-python/google/oauth2/id_token.py Lines 86 to 108 in c05b8b5
Could you try increasing the logging level and verifying that the HTTP request is the bottleneck? import logging
logging.basicConfig(level=logging.DEBUG) |
@busunkim96 For me it's also taking long, depends on environment. I have noticed that usually this function gives additional 0,5 - 1s of overhead while token is verified from a header on the each call. I would like to use cert request cache like it's described in the comments but the explanation is not giving the idea of a fallback when certs are expired. Could you please give more explicit description what to expect when cert is expired and how yo request new certs in this fallback case? Thanks in advance! |
Thanks for stopping by to let us know something could be better!
PLEASE READ: If you have a support contract with Google, please create an issue in the support console instead of filing on GitHub. This will ensure a timely response.
Please run down the following list and make sure you've tried the usual "quick fixes":
If you are still having issues, please be sure to include as much information as possible:
Environment details
google-api-python-client
version: google-api-core (1.21.0) google-api-python-client (1.9.3) google-auth (1.19.0) google-auth-httplib2 (0.0.4) googleapis-common-protos (1.52.0)Steps to reproduce
Code example
Stack trace
Making sure to follow these steps will guarantee the quickest resolution possible.
Thanks!
The text was updated successfully, but these errors were encountered: