Firebase云函数部署错误

标签 firebase google-cloud-functions

我的 firebase 部署不定期地陷入此日志:

i  functions: updating function [FUNCTION NAME]...

取消部署并重试后会抛出以下错误消息:

⚠  functions: failed to update function resetBadgeCount
⚠  functions: HTTP Error: 400, An operation on function [FUNCTION NAME] 
in region us-central1 in project [PROJECT NAME] is already in progress. 
Please try again later.

因此,部署似乎被卡住并保留在管道中,阻碍了进一步的部署。过了一会儿又让我正常部署功能了。 但这有解释吗?或者甚至是一句话?

最佳答案

转到Google cloud functions console看看你的函数是否有红色感叹号。然后选择该特定功能并尝试删除。一旦从那里删除它,您就可以再次成功部署。如果显示旋转器,则等待它显示红色标记。

关于Firebase云函数部署错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44596181/

相关文章:

Android Firebase 库,仪器测试 - 无静态方法 registerDefaultInstance(Ljava/lang/Class;Lcom/google/protobuf/GeneratedMessageLite

node.js - 从 Firebase 迁移到自己的服务器和后端

java - 我想获得 Push() 生成的唯一 ID

iOS + Firebase - 将数据从 View Controller 发送到详细 View Controller

firebase - 由于权限错误,无法部署 Firebase 云功能

python - 为什么云函数采用不同的时区/时间?

javascript - Firebase .on ('value' ) 代码块未在云函数内执行。有什么建议可以解决吗?

android - 为什么我没有将firebase的输出作为字符串?

javascript - TypeError : this. path.replace 不是新 FirestoreDelete 的函数

google-cloud-platform - Google Cloud Functions 无法使用 Pub/Sub 死信主题