Firebase部署错误.执行环境中的故障
将项目部署到Firebase时出现以下错误:
While deploying project to firebase getting following error:
Deployment error.
Failure in the execution environment
在某些功能中它随机发生.虽然某些功能可能一次失败,但是在另一次尝试中,它可能会正常运行,或者在某些不同功能下显示错误.
It happens randomly during some functions. While it may fail once for certain functions, on another attempt it might work without error or show error with some different functions.
请提出如何摆脱这种不可预测的Firebase行为的建议.
Please suggest how to get rid of this unpredictable Firebase behavior.
最近,在运行firebase deploy
时,同样的问题开始出现在我身上.
The same issue started to happen for me recently when running firebase deploy
.
要解决此问题,只需分别部署功能:
To work around it, just deploy functions separately:
firebase deploy --except functions
firebase deploy --only functions
我的假设是,一次部署所有内容时会遇到某种超时或限制.有关更多细粒度的选项,请参见有关部分部署的文档.
My assumption is that some sort of timeout or limit is hit when deploying everything at once. See the docs on partial deploys for more fine-grained options.