-
Notifications
You must be signed in to change notification settings - Fork 35
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
Intermittent error: request had invalid authentication credentials #430
Comments
Greetings! We get reports of these from time to time, and they are hard to track down. Are you directly using this library? Or the @google-cloud/pubsub npm module? We suspect this has something to do with instability in the metadata server or networking stack inside of GKE used to serve up credentials. One way around that is to create your own service account, and put those secrets in the cluster. I'd really love to know if this happens when you're using a downloaded service account key file as opposed to the default metadata credentials. |
Hello @JustinBeckwith, Thanks for your response. I am using this library directly to implement a REST client to PubSub (@google-cloud/pubsub uses grpc, that we cannot use atm). Although we are running on GKE, we use our own service account and don't rely on GKE to serve up the credentials. However I have just noticed that in the last couple of weeks the only service where this keeps happening is using an older version of this library (i.e., before the "update dependency google-auth-library to v5"). I have just deployed a new version that includes the latest version of this library (and consequently the google-auth-library v5) and will monitor if it happens again. Thanks again for taking the time to reply. Have a great weekend. |
unfortunately it is still happening even on the latest release. Let me know if there is anything I can do to help with pinpointing the problem |
hey guys, I was investigating the similar issue for BigQuery googleapis/nodejs-bigquery#473 and my comment to it googleapis/nodejs-bigquery#473 (comment) I added some logs in
|
Greetings folks! We're mostly sure we've resolved all the issues here. We found a bug in the underlying auth library (shout out to @bcoe) that dealt with token refresh issues. I'm going to close this out for now. If you're still running into this problem, please do let us know! |
I'm receiving a similar error when posting a google chat message via a webhook. It works most of the time, but will start failing with the following error: "error": { I'm not sure how an authentication failure would occur with a webhook. Are there limits on the number of messages? |
Is there any
Any update on this issue? It's causing major issues with our automated bot notifications and having a production impact. |
Greetings @ravi-ssi - this is entirely unrelated to this module. If you're having specific issues with auth and the chat API, could I trouble you to open an issue here, with the questions in the issue template? |
If you are still having issues, please be sure to include as much information as possible:
Environment details
@google-cloud/common
version: 1.0.0Steps to reproduce
We are long polling a Pub/Sub REST endpoint and from time to time (about once a week or so) we get an error that seems to indicate that something went wrong with the refresh token for OAuth? We handle the exception by logging and returning an empty list, without any interaction the problem goes away on the next iteration.
This is happening for some time now, before 1.0.0 but I cannot easily determine in which version it started to happen.
The text was updated successfully, but these errors were encountered: