SigningError: Permission iam.serviceAccounts.signBlob is required to perform this operation on service account projects/RAN...@appspot.gserviceaccount.com. at /user_code/node_modules/firebase-admin/node_modules/@google-cloud/storage/src/file.js:1715:16 at Request._callback (/user_code/node_modules/firebase-admin/node_modules/@google-cloud/storage/node_modules/google-auto-auth/index.js:356:9) at Request.self.callback (/user_code/node_modules/firebase-admin/node_modules/request/request.js:185:22) at emitTwo (events.js:106:13) at Request.emit (events.js:191:7) at Request.<anonymous> (/user_code/node_modules/firebase-admin/node_modules/request/request.js:1157:10) at emitOne (events.js:96:13) at Request.emit (events.js:188:7) at IncomingMessage.<anonymous> (/user_code/node_modules/firebase-admin/node_modules/request/request.js:1079:12) at IncomingMessage.g (events.js:292:16)
const bucket = admin.storage().bucket();
const file = bucket.file(filePath);
var writeStream = file.createWriteStream({
metadata: {
contentType: 'image/png',
}
});
codeStream.pipe(writeStream);
return writeStream.on('finish', function() {
file.getSignedUrl({
action: 'read',
expires: '03-17-2025'
}).then(signedUrls => {
data.QRCODE = signedUrls[0];
// DOES NOT GET HERE--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/38e7e296-2f0d-4642-95a2-5353ad106786%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
const gcs = require('@google-cloud/storage')({keyFilename: 'serviceAccountTester.json'});To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/b88b6eeb-b0eb-4c71-8cb4-ce7ce1e561b4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
const functions = require('firebase-functions')
const admin = require('firebase-admin')
admin.initializeApp()
const twilioModule = require('./src/twilio')
const slackModule = require('./src/slack')
const authModule = require('./src/auth')
const usersModule = require('./src/users')
exports.twilio = functions.https.onRequest(twilioModule.app)
exports.slack = functions.https.onRequest(slackModule.app)
exports.auth = functions.https.onRequest(authModule.app)
exports.users = functions.https.onRequest(usersModule.app)
...
const functions = require('firebase-functions')
const admin = require('firebase-admin')
if (process.env.FUNCTION_BEING_EXECUTED == 'twilio') {
const customCert = require('/path/to/cert')
admin.initializeApp(customCert)
} else {
admin.initializeApp()
}
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-talk+unsubscribe@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/b88b6eeb-b0eb-4c71-8cb4-ce7ce1e561b4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/b88b6eeb-b0eb-4c71-8cb4-ce7ce1e561b4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/7c3354e8-fe2a-43e6-91cf-258e6db04aa2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.