小编Ben*_*nne的帖子

获取“HTTP 错误:404,未找到方法”。在 Firebase Cloud Functions 上运行“firebase deploy --only functions”时

几个小时以来,我一直被这个问题困扰,我想你们中的一个人之前可能遇到过它。

Error: HTTP Error: 404, Method not found.在运行时遇到了问题,firebase deploy --only functions因此无法部署上次更新。

  • 所有的Firebase Cloud Functions 项目都会发生这种情况

  • 我的 Firebase 托管不会发生这种情况

这是我添加时得到的--debug

firebase deploy --only functions:onBookingCreated --debug
[2020-08-25T15:18:37.029Z] ----------------------------------------------------------------------
[2020-08-25T15:18:37.032Z] Command:       /usr/local/Cellar/node/12.4.0/bin/node /usr/local/bin/firebase deploy --only functions:onBookingCreated --debug
[2020-08-25T15:18:37.032Z] CLI Version:   7.0.0
[2020-08-25T15:18:37.032Z] Platform:      darwin
[2020-08-25T15:18:37.032Z] Node Version:  v10.15.3
[2020-08-25T15:18:37.033Z] Time:          Tue Aug 25 2020 17:18:37 GMT+0200 (Central European Summer Time)
[2020-08-25T15:18:37.034Z] ----------------------------------------------------------------------

[2020-08-25T15:18:37.044Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
[2020-08-25T15:18:37.044Z] > authorizing via signed-in user
[2020-08-25T15:18:37.044Z] …
Run Code Online (Sandbox Code Playgroud)

google-cloud-functions firebase-cli

5
推荐指数
1
解决办法
1615
查看次数