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

标签 http firebase deployment

我有一个 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/

相关文章:

scala - 使用 Rapture Http 获取请求

swift - 无法将 NSTaggedPointerString 类型的值转换为 NSDictionary

ruby-on-rails - 使用rails webpacker时我们应该将manifest.json文件提交到git repo吗?

python - 从 virtualenv 环境中隐藏 Mac OS X 开发工具

java - HTTP 1.1 流水线

git - 如何使用 Bitnami Gitorious 堆栈通过 HTTP 克隆 git 存储库?

android - 区分 firstore 中的首次查询快照和更改监听器

firebase - flutter 等待结果总是空的

ruby-on-rails - Ruby on Rails 和 Github 页面

apache - 用于基于路径的 svn 访问的 Viewvc