gpt4 book ai didi

http - Firebase APP 部署失败,HTTP 错误 : 500, 请求包含无效参数

转载 作者:可可西里 更新时间:2023-11-01 16:40:51 24 4
gpt4 key购买 nike

我有一个 firebase 应用程序,当我部署它时 [firebase deploy] 它返回此错误。

HTTP 错误:500,请求包含无效参数。

终端输出 enter image description here

调试日志说:

[debug] ----------------------------------------------------------------------
[debug] Command: /usr/local/bin/node /usr/local/bin/firebase deploy
[debug] CLI Version: 3.1.0
[debug] Platform: darwin
[debug] Node Version: v4.6.1
[debug] Time: Tue Nov 08 2016 19:28:28 GMT-0500 (EST)
[debug] ----------------------------------------------------------------------
[debug]
[debug] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase"]
[debug] > refreshing access token with scopes: ["email","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","openid"]
[debug] >>> HTTP REQUEST POST https://www.googleapis.com/oauth2/v3/token
[debug] <<< HTTP RESPONSE 200
[debug] >>> HTTP REQUEST GET https://admin.firebase.com/v1/projects/chat-4d6fb
[debug] <<< HTTP RESPONSE 200
[debug] >>> HTTP REQUEST GET https://admin.firebase.com/v1/database/chat-4d6fb/tokens
[debug] <<< HTTP RESPONSE 200
[info]
[info] === Deploying to 'chat-4d6fb'...
[info]
[info] i deploying database, storage, hosting
[info] ✔ database: rules ready to deploy.
[info] i storage: checking rules for compilation errors...
[debug] >>> HTTP REQUEST POST https://firebaserules.googleapis.com/v1/projects/chat-4d6fb:test
[debug] <<< HTTP RESPONSE 200
[info] ✔ storage: rules file compiled successfully
[info] i hosting: preparing ./ directory for upload...
[debug] >>> HTTP REQUEST PUT https://deploy.firebase.com/v1/hosting/chat-4d6fb/uploads/-KW5U6Mb3XEOtWn_Kfam?fileCount=14&message=
[debug] <<< HTTP RESPONSE 200
[info] ✔ hosting: ./ folder uploaded successfully
[info] ✔ hosting: 14 files uploaded successfully
[info] i starting release process (may take several minutes)...
[debug] >>> HTTP REQUEST POST https://deploy.firebase.com/v1/projects/chat-4d6fb/releases
[debug] <<< HTTP RESPONSE 500
[debug] <<< HTTP RESPONSE BODY
[error]
[error] Error: HTTP Error: 500, Request contains an invalid argument.
[debug] Error Context: {
"body": {
"error": {
"code": "UNKNOWN_ERROR",
"message": "Request contains an invalid argument."
}
},
"response": {
"statusCode": 500,
"body": {
"error": {
"code": "UNKNOWN_ERROR",
"message": "Request contains an invalid argument."
}
},
"headers": {
"server": "nginx",
"date": "Wed, 09 Nov 2016 00:28:39 GMT",
"content-type": "application/json; charset=utf-8",
"content-length": "84",
"connection": "close",
"access-control-allow-origin": "*",
"access-control-allow-methods": "GET, PUT, POST, DELETE, OPTIONS",
"strict-transport-security": "max-age=31556926; includeSubDomains; preload",
"x-content-type-options": "nosniff"
},
"request": {
"uri": {
"protocol": "https:",
"slashes": true,
"auth": null,
"host": "deploy.firebase.com",
"port": 443,
"hostname": "deploy.firebase.com",
"hash": null,
"search": null,
"query": null,
"pathname": "/v1/projects/chat-4d6fb/releases",
"path": "/v1/projects/chat-4d6fb/releases",
"href": "https://deploy.firebase.com/v1/projects/chat-4d6fb/releases"
},
"method": "POST"
}
}
}

有谁知道为什么会这样,或者有什么建议可以尝试吗?

最佳答案

使用firebase login:ci再次登录如何?
它将生成一个新的 token 。您可以使用 firebase deploy --token "$FIREBASE_TOKEN"

进行部署

关于http - Firebase APP 部署失败,HTTP 错误 : 500, 请求包含无效参数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40498768/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com