pie*_*lgb 11 firebase google-cloud-functions
我第一次尝试设置 firebase 功能。我按照文档中的步骤操作,但是当我运行时firebase init functions遇到此错误:
错误:HTTP 错误:400,收到无效的 JSON 负载。未知名称“skipLog”:找不到字段。
以下是该文件的摘录firebase-debug.log:
[debug] [2022-04-20T08:53:35.659Z] <<< [apiv2][body] POST https://serviceusage.googleapis.com/v1/projects/<my_project_name>/services/cloudfunctions.googleapis.com:enable {"error":{"code":400,"message":"Invalid JSON payload received. Unknown name \"skipLog\": Cannot find field.","status":"INVALID_ARGUMENT","details":[{"@type":"type.googleapis.com/google.rpc.BadRequest","fieldViolations":[{"description":"Invalid JSON payload received. Unknown name \"skipLog\": Cannot find field."}]}]}}
[error]
[error] Error: HTTP Error: 400, Invalid JSON payload received. Unknown name "skipLog": Cannot find field.
[debug] [2022-04-20T08:53:35.670Z] Error Context: {
"body": {
"error": {
"code": 400,
"message": "Invalid JSON payload received. Unknown name \"skipLog\": Cannot find field.",
"status": "INVALID_ARGUMENT",
"details": [
{
"@type": "type.googleapis.com/google.rpc.BadRequest",
"fieldViolations": [
{
"description": "Invalid JSON payload received. Unknown name \"skipLog\": Cannot find field."
}
]
}
]
}
},
"response": {
"statusCode": 400
}
}
Run Code Online (Sandbox Code Playgroud)
小智 8
要使用版本 10.6.0 卸载并重新安装:
npm uninstall -g firebase-tools
npm install -g firebase-tools@10.6.0
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
3078 次 |
| 最近记录: |