-
Notifications
You must be signed in to change notification settings - Fork 715
200 in development, 404 in production #2440
Copy link
Copy link
Closed
Labels
api: storageIssues related to the Cloud Storage API.Issues related to the Cloud Storage API.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.
Description
Activity
Metadata
Metadata
Assignees
Labels
api: storageIssues related to the Cloud Storage API.Issues related to the Cloud Storage API.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.
Environment details
In development the application is containerised with the above configuration. In production the app is running the same container on GKE.
Symptoms
Running the same user-land code of
storage.createReadStream('a5bfd28d-b914-497e-91d5-33d9fd43e47f.png')in development and production produces different results.In development, the call above requests the url
https://storage.googleapis.com/stemn/uploads%2Fa5bfd28d-b914-497e-91d5-33d9fd43e47f.pngand the storage resource is found correctly. In production, the same call requests the url
https://www.googleapis.com/storage/v1/b/stemn/o/%2Fuploads%2Fa5bfd28d-b914-497e-91d5-33d9fd43e47f.png?alt=mediawhich 404s.
I'm not sure what's causing the structure of these urls to be different. Could you suggest steps that I could take that would provide you more information about this issue?