firebase-tools: Deployment error. Failed to verify the provided Cloud Storage Signed URL
node: v8.16.2
firebase-functions: ^2.0.0
firebase-tools: 7.9.0
firebase-admin: ^7.0.0
I’m trying deploy functions using only:
firebase --project ddmania deploy --only functions
However, a got the following error:
Deployment error. Failed to verify the provided Cloud Storage Signed URL
How can i solve it?
I have no any file in Cloud Storage…
When a try to access any function i get the following error:
Error: Forbidden Your client does not have permission to get URL
I tried set the role function as allUsers but still giving error…
I also have a service account set up… but no success…
content of my index.js
const functions = require('firebase-functions');
const admin = require('firebase-admin');
var serviceAccount = require("./ddmania-live.json");
admin.initializeApp({
credential: admin.credential.cert(serviceAccount),
databaseURL: "https://ddmania-live.firebaseio.com",
});
exports.teste = functions.https.onRequest((req,res) => {
res.send({"message":"WORKKKK :)"})
})
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 3
- Comments: 32 (9 by maintainers)
I just had this same error and found this thread. I use two separate firebase projects, one for dev and one for prod. Using the firebase-cli I’d just added the dev project. I’d used
firebase use project-name-prodbut had the issue deploying cloud functions. I usedfirebase logoutand thenfirebase loginand everything worked fine. Seems like my projects were out of sync on the backend when I was trying to deploy.It still doesn’t work. I tried everything.