GaxiosError: Failed to retrieve verification certificates: request to https://www.googleapis.com/oauth2/v1/certs failed #1769
Labels
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Today out of the blue my login endpoint stopped working, and it seemingly never returned.
After a few minutes of debugging, I realised the
verifyIdToken
method was still running.For some reason, the library tries to fetch certificates without any sort of warning or timeout for this, assuming the server will always be able to respond.
Then, I finally got this error:
It is pretty much the same as googleapis/google-api-nodejs-client#3028.
I don't think it would be that hard to set a timeout on things like this, but maybe there's a reason for it? Who knows
Environment details
google-auth-library
version: 9.6.3Steps to reproduce
client.verifyIdToken()
Making sure to follow these steps will guarantee the quickest resolution possible.
Thanks!
The text was updated successfully, but these errors were encountered: