我正在尝试部署一个firebase云函数。它在本地firebase模拟器上工作,但当我尝试部署时,它在firebase控制台云函数日志中显示以下错误:{"@type":"type.googleapis.com/google.cloud.audit.AuditLog","status":{"code":13,"message":"Failed to configure trigger for event-type:providers/cloud.firestore/eventTypes/document.u
我在package.json中升级了Node 14到16。现在,我无法部署所有云功能一次。
我运行这个命令来部署所有函数一次。
"deploy-dev": "firebase use dev && firebase deploy --only functions"
终端错误消息
Functions deploy had errors with the following functions:
chatFieldDisableOnce(us-central1)
chatFieldReqUpdateOnce(us-ce
当我做我的第一个部署功能,我不能部署,因为我有错误,要求我升级到我的帐户,我需要知道,我可以部署功能时,我使用免费帐户?
输出:
i deploying functions
i functions: ensuring required API cloudfunctions.googleapis.com is enabled...
i functions: ensuring required API cloudbuild.googleapis.com is enabled...
! functions: missing required API cloudbuild.googleapis
在运行命令行firebase deploy --only functions之后,我有以下错误:
在下面的中,您也可以在防火墙中找到日志:
我多次尝试运行用于部署的命令,日志显示不同的消息,最后一条消息是:
11:13:12.563 PM
api
Error: function terminated. Recommended action: inspect logs for termination reason. Function cannot be initialized.
11:13:12.615 PM
api
{"@type":"type.go
我有下面的命令来部署google云功能。
我使用相同的命令来部署gen1的google函数(除了标志--gen2 ),一切都很好。在具有数据库的项目中,我使用命令中设置的服务帐户设置了Cloud Sql Client的角色。
但是,当我部署谷歌云功能的gen2,我不能连接到另一个项目的数据库。考虑到gen2云函数使用Cloud Run,我还检查了Cloud Run使用的service-account,它与具有数据库的项目中具有Cloud Sql Client的service account匹配。
我知道这个错误
SQLSTATE[HY000] [2002] No such file or di
我正在将Python函数部署为Google函数。它在本地测试良好,部署到GCP中,没有任何抱怨。但是,当我实际执行它的时候,它会崩溃.
Error: function terminated. Recommended action: inspect logs for termination reason. Details:
The pandas library is not installed, please install pandas to use the to_dataframe() function.
我的requirements.txt如下所示(并且已经验证了它实际上是在部署函数时上传
在GCP函数中创建python函数,用于修改存储中对象的元数据。部署过程中显示错误,错误消息如下:
Function failed on loading user code. This is likely due to a bug in the user code.
Error message: Error: please examine your function logs to see the error cause:
https://cloud.google.com/functions/docs/monitoring/logging#viewing_logs. Additional
以下内容:
守则是:
const functions = require('firebase-functions'); // is installed automatically when you init the project
const { auth } = require('google-auth-library'); // is used to authenticate your request
async function exportDB () {
const admin = await auth.getClient({
在我的Firebase项目中,我有一个functions.pubsub.schedule().onRun(),它每5分钟运行一次,以执行一些与日历相关的任务。它需要在Firestore集合中查找,并使用.get()查询进行查找。直到2020年-03-13日的某个时候,这个功能才开始运转良好。
2020-03-13 09:36:02.326 CET scheduledHooks 1042277797598294
Error: INTERNAL ERROR: Client is not yet ready to issue requests.
at Firestore.get projectId
我想在Firebase函数中使用Stripe。
试图将以下源代码部署到函数中将导致错误。
const functions = require('firebase-functions');
const express = require("express");
const app = express();
// This is your real test secret API key.
const stripe = require("stripe")("STRIPE KEY HERE");
app.use(express.sta
我试图在安卓应用程序中显示firebase函数的结果。这是我第一个实践.I的函数,正确部署了函数,并在控制台中正常工作。然后我想要的下一步是:如何在Android的空活动中显示我的函数的结果?或者功能和android应用程序之间连接的步骤是什么--这是我的简单功能:
const functions = require('firebase-functions');
// Create and Deploy Your First Cloud Functions
// https://firebase.google.com/docs/functions/write-firebas
我通过firebase创建了一个计划好的云函数,以便每分钟运行一次,并从埃琳娜体育APIs端点收集数据,但是我不断地在我的云函数日志中发现错误,这里是我的日志,我是新手,所以我选择了node.js (请求)代码示例来测试APIS是否有效,我是否使用了错误的语言代码示例,我认为云函数可以使用node.js编码,请帮助了解我做错了什么。
11:15:00.247 PM
scheduledFunction
Hey mac , im working.....
11:15:00.249 PM
scheduledFunction
at Function.Module._resolveFilename (i