gpt4 book ai didi

firebase - 错误: Functions did not deploy properly

转载 作者:行者123 更新时间:2023-12-02 22:12:35 33 4
gpt4 key购买 nike

函数部署有错误。要继续部署其他功能(例如数据库),请运行:

firebase deploy --except functions

错误:

Functions did not deploy properly.

最佳答案

尝试使用 --debug 运行部署。例如:firebase --debug部署

就我而言,该函数如下所示:

exports.test = functions.firestore.document('chats').onCreate((snap, context) => {
...
});

调试日志包含以下错误消息:

fieldViolations=[field=event_trigger, description=Expected value chats to match regular expression [^/]+/[^/]+(/[^/]+/[^/]+)*]]

就在那时我意识到 chats 不是文档而是集合。我将路径更改为集合的路径,一切正常。

编辑:

要查看更多日志,您还可以尝试:

firebase functions:log

firebase functions:log --only <FUNCTION_NAME>

Link到文档。

关于firebase - 错误: Functions did not deploy properly,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44067372/

33 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com