我正在尝试让firebase和cloud run的教程按照here的说明工作。
在firebase部署步骤中,我一直收到权限被拒绝的错误,下面是错误堆栈:
firebase deploy --debug
i deploying hosting
[2020-12-07T03:52:01.058Z] >>> HTTP REQUEST POST https://firebasehosting.googleapis.com/v1beta1/sites/nubonetics/versions
{"config":{"rewrites":[{"glob":"**","run":{"region":"us-central1","serviceId":"helloworld"}}]},"labels":{"deployment-tool":"cli-firebase"}}
[2020-12-07T03:52:01.524Z] <<< HTTP RESPONSE 403 {"vary":"X-Origin, Referer, Origin,Accept-Encoding","content-type":"application/json; charset=UTF-8","date":"Mon, 07 Dec 2020 03:52:01 GMT","server":"ESF","cache-control":"private","x-xss-protection":"0","x-frame-options":"SAMEORIGIN","x-content-type-options":"nosniff","alt-svc":"h3-29=\":443\"; ma=2592000,h3-T051=\":443\"; ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\"","accept-ranges":"none","transfer-encoding":"chunked"}
[2020-12-07T03:52:01.525Z] <<< HTTP RESPONSE BODY {"error":{"code":403,"message":"The caller does not have permission","status":"PERMISSION_DENIED"}}发布于 2020-12-07 12:24:40
您可能需要在CloudRun上设置权限。请查看以下文章的“开始之前”部分:
https://cloud.google.com/cloud-build/docs/deploying-builds/deploy-cloud-run
https://stackoverflow.com/questions/65176047
复制相似问题