【发布时间】:2020-04-03 10:44:03
【问题描述】:
我正在尝试将以下简单功能上传到我的 firebase 控制台
const functions = require('firebase-functions');
exports.helloWorld = functions.https.onRequest((request, response) => {
response.send("Hello from Firebase!");
});
但是,它失败并出现以下错误:
HTTP Error: 400, Default service account 'myfirebase-projecte@appspot.gserviceaccount.com' doesn't exist. Please recreate this account (for example by disabling and enabling the Cloud Functions API), or specify a different account.
此时,我对 Firebase 和 Google Cloud Platforms 以及在哪里可以修复此错误感到困惑。
【问题讨论】:
-
您是否按照建议操作并禁用/重新启用 Cloud Functions API?您必须在 Google Cloud 控制台中执行此操作。
-
是的,我有,但无济于事。
标签: node.js firebase authentication firebase-authentication google-cloud-functions