Repository navigation
Google Cloud Functions: Could not authenticate request #2158
Description
Activity
Hi @leonardoam. Thanks for reporting.
At the moment, I am just acking your issue. I am not sure what to do (but giving it some background thought while I hope someone else speaks up).
Reacted by Leonardo Alves Miguel- addedapi: storageIssues related to the Cloud Storage API.Issues related to the Cloud Storage API.priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
on Mar 29, 2017 Possibly related to #2139.
@leonardoam is there a way to find out which version of
@google-cloud/commonis being loaded? We sent through a fix recently that was released with @google-cloud/[email protected], which would hopefully resolve this.Sorry @leonardoam, that was bad information. We didn't actually release the fix yet, but I am even more certain now that it will resolve this issue. This issue is another flavor of #1908, which reported this same error in Compute Engine environments.
I'm going to close and try to remember to ping you when we release an update (hopefully the coming days), and we'll re-investigate if it turns out not to be the fix. Sorry for the trouble.
Reacted by Leonardo Alves Miguel@leonardoam Release party is happening now, so this should be good to go in a couple hours.
Thanks guys. What version will this fix affect?
Last ocurrence happened at 14:49 BRT, I will keep monitoring and let you know if this fixed the issue.@leonardoam Should be fixed in the newest version, which for storage is 1.0.0.
What is the newest version? I'm seeing this error on "@google-cloud/[email protected]" inside of a Google Cloud Functions routine.
Error: Could not authenticate request Could not load the default credentials. Browse to https://developers.google.com/accounts/docs/application-default-credentials for more information. at wrapError (/user_code/node_modules/@google-cloud/storage/node_modules/gcs-resumable-upload/index.js:24) at (/user_code/node_modules/@google-cloud/storage/node_modules/gcs-resumable-upload/index.js:268) at (/user_code/node_modules/@google-cloud/storage/node_modules/google-auto-auth/index.js:25) at (/user_code/node_modules/@google-cloud/storage/node_modules/google-auto-auth/index.js:173) at process._tickDomainCallback (next_tick.js:129)it's not happening for every queue item, it's sporadic.
Reacted by Charlton, Maksym Khrystenko, sashkastndby and AurelI too am confused. What modules need to be updated to what version to resolve this issue?
@Chandler same issue, it's happen sometimes. did you find solution??
I am using a node.js function on Google Cloud Functions to save Pub/Sub messages to GCS (Storage), but it randomly gives me the following error for some messages (most of the messages are succesfully written):
"Error: Could not authenticate request. Could not load the default credentials. Browse to https://developers.google.com/accounts/docs/application-default-credentials for more information."
It doesn't make sense, once running on GCE would use same service-account for all messages, which has the proper permissions, and all messages comes from the same source and goes to the same destination. Can someone enlighten me on what could I do?
I'm using google-cloud/storage version 0.8.0.