Closed bradam12 closed 4 months ago
Hi @bradam12 is this only happening within GKE? Has it been successful in other environments for you?
Local is fine. I can spin up a GCP VM and try similarly.
On Fri, Oct 27, 2023, 9:33 AM Denis DelGrosso @.***> wrote:
Hi @bradam12 https://github.com/bradam12 is this only happening within GKE? Has it been successful in other environments for you?
— Reply to this email directly, view it on GitHub https://github.com/googleapis/nodejs-storage/issues/2346#issuecomment-1782928357, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABGZHDEGD3WCNTYGDCOVRM3YBOZZNAVCNFSM6AAAAAA6SBBAW6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOBSHEZDQMZVG4 . You are receiving this because you were mentioned.Message ID: @.***>
@bradam12 came across this documentation: https://cloud.google.com/knowledge/kb/unable-to-reach-gke-metadata-server-on-workload-identity-enabled-cluster-000004705 is this inline with your problem?
Unfortunately does not apply. I'm able to curl to the metadata server to get a token correctly.
I'm no longer working in that env. Closing.
We were getting the "Failure from metadata server" when trying to create a signed URL in our existing application. This is an app already running in prod. We're adding an additional feature that requires signed URLs.
I created a barebones test.js file and also used the included sample at https://github.com/googleapis/nodejs-storage/blob/main/samples/generateV4ReadSignedUrl.js as reproducible cases. Versions 2.x, 3.x, 4.x all work properly, and 5.0.0 and up exhibit the error.
Environment details
@google-cloud/storage
version: 5.0.0 and upSteps to reproduce
node test.js bucketname filename
Failure from metadata server.