Firebase CLI部署功能 - 错误:无法初始化区域 [英] Firebase CLI deploy functions - Error: Failed to initialize a region
问题描述
我在为Blaze计划中的应用程序执行 firebase deploy --only functions
时遇到了麻烦。
我有最新的firebase-tools CLI(v 3.5.0)。
我得到以下错误:
===部署到'myapp1234'...
i部署函数
i函数:确保启用必要的API ...
i runtimeconfig:确保必要的API被启用...
✔runtimeconfig:所有必要的API被启用
✔函数:所有必要的API被启用
i函数:准备上传的函数目录..
i函数:打包函数(1.29 KB)用于上传
函数:函数文件夹上传成功
i启动释放过程(可能需要几分钟)...
i函数:更新函数myFunc ...
函数[myFunc]:部署错误:无法初始化区域
功能部署有错误。要继续部署其他功能(例如数据库),请运行:
firebase deploy --except函数
错误:函数未正确部署。
在过去的12个小时里,我每隔半小时就重试一次,认为中断了。好的,这里是我发现的,有点奇怪:
$ b
$ b
firebase list
显示您有权访问的所有Firebase项目,但它们尚不可用(例如添加为当前文件夹项目的别名)。
$ b
即使firebase-tools CLI允许你执行 为了解决这个问题,我发现有两个选项: li> =>然后 I'm having trouble doing I get the following error: I've retried this every half hour for the past 12 hours, thinking there's an outage. The firebase status page shows all green. Ok, here's what I found, a little weird: Even if the firebase-tools CLI allows you to do To fix this, I found that there are 2 options: => and then 这篇关于Firebase CLI部署功能 - 错误:无法初始化区域的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋! firebase deploy --project myproject1
,如果你在 .firebaserc
=>中声明的没有> myproject1
firebase use --add
(会触发交互式列表)
firebase use myproject1
firebase deploy --project myproject1
将工作(有或没有可选的 - 只有函数
)firebase deploy --only functions
for an app on Blaze plan.
I have the latest firebase-tools CLI (v 3.5.0).=== Deploying to 'myapp1234'...
i deploying functions
i functions: ensuring necessary APIs are enabled...
i runtimeconfig: ensuring necessary APIs are enabled...
✔ runtimeconfig: all necessary APIs are enabled
✔ functions: all necessary APIs are enabled
i functions: preparing functions directory for uploading...
i functions: packaged functions (1.29 KB) for uploading
✔ functions: functions folder uploaded successfully
i starting release process (may take several minutes)...
i functions: updating function myFunc...
⚠ functions[myFunc]: Deploy Error: Failed to initialize a region
Functions deploy had errors. To continue deploying other features (such as database), run:
firebase deploy --except functions
Error: Functions did not deploy properly.
firebase list
shows all the firebase projects you have access to, BUT they are not already available (i.e. added as alias to your current folder project).firebase deploy --project myproject1
, if you do not have myproject1
declared in .firebaserc
=> it will fail with the weird region error above.
firebase use --add
(will trigger an interactive list) firebase use myproject1
firebase deploy --project myproject1
will work (with or without the optional --only functions
)