Images uploaded through Firebase Admin SDK not displaying properly in the Firebase Console
See original GitHub issue[REQUIRED] Step 2: Describe your environment
Mac OS 10.14.6 firebase-admin : 8.7.0 Firebase Admin SDK Firebase Storage Node v10.16.0 Npm 6.12.0
[REQUIRED] Step 3: Describe the problem
I am uploading images to Firebase Storage from a Node.js app that I have built. The upload seems to go fine, but any image upload through the Firebase Admin SDK will not open in the Firebase Console. If I try clicking on the image I get:
`404. That’s an error.
The requested URL was not found on this server. That’s all we know.`
In the Firebase console detail inspector, it just infinitely spins showing a loading progress bar.
If I inspect the image through Google Cloud Console, the image opens fine.
I have not tested downloading the image from an app or through the Firebase Admin SDK to see if it works.
Steps to reproduce:
Upload an image using the Node JS Firebase Admin SDK. I have tried this to multiple directories and I get the same issue every time.
Relevant Code:
await FirebaseAdmin.storage().bucket().upload(`./ImageName/${ImageName}.png`, {destination: `Image/${ImageName}/${ImageName}.png`, gzip: true, contentType: "image/png", metadata: {contentType: "image/png"}})
Issue Analytics
- State:
- Created 4 years ago
- Comments:23 (5 by maintainers)
Hi, I was have same error, review google cloud console if very simple, no display in console because firebase console need firebaseStorageDownloadTokens, check example:
first install : npm install uuid
Come one, guys. You need external users to forward a breaking issue to another google team?