200 in development, 404 in production #2440
Labels
api: storage
Issues related to the Cloud Storage API.
type: bug
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.png
and 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=media
which 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?
The text was updated successfully, but these errors were encountered: