Firebase部署会返回未知错误

时间:2016-02-22 21:14:20

标签: firebase firebase-hosting

我正在尝试将我的网站部署到firebase,这是我之前所做的,但现在却说“错误:发生了未知错误。请联系支持部门。” firebase-debug.log文件的内容如下:

[debug] ----------------------------------------------------------------------
[debug] Command:      /usr/bin/nodejs /usr/bin/firebase deploy
[debug] Platform:     linux
[debug] Node Version: v4.3.0
[debug] Time:         Mon Feb 22 2016 13:58:38 GMT-0700 (MST)
[debug] ----------------------------------------------------------------------
[debug] 
[debug] >>> HTTP REQUEST GET https://admin.firebase.com/firebase/joshweaverspark/token?token=XXX 
[error] 
[error] Error: An unknown error occurred. Please contact support.
[debug] Error Context: {
  "requestOptions": {
    "method": "GET",
    "json": true,
    "url": "https://admin.firebase.com/firebase/joshweaverspark/token?token=-KA3RgJFHuDHz6BHvFQF%7C3b00cd5fc3e1c76f43a26385a3f680c0"
  },
  "body": {
    "error": {
      "code": "UNKNOWN_ERROR",
      "message": "An unknown error occurred. Please contact support."
    }
  },
  "response": {
    "statusCode": 500,
    "body": {
      "error": {
        "code": "UNKNOWN_ERROR",
        "message": "An unknown error occurred. Please contact support."
      }
    },
    "headers": {
      "server": "nginx",
      "date": "Mon, 22 Feb 2016 20:58:54 GMT",
      "content-type": "application/json; charset=utf-8",
      "content-length": "97",
      "connection": "close",
      "access-control-allow-origin": "*",
      "access-control-allow-methods": "GET, PUT, POST, DELETE, OPTIONS",
      "x-content-type-options": "nosniff"
    },
    "request": {
      "uri": {
        "protocol": "https:",
        "slashes": true,
        "auth": null,
        "host": "admin.firebase.com",
        "port": 443,
        "hostname": "admin.firebase.com",
        "hash": null,
        "search": "?token=-KA3RgJFHuDHz6BHvFQF%7C3b00cd5fc3e1c76f43a26385a3f680c0",
        "query": "token=-KA3RgJFHuDHz6BHvFQF%7C3b00cd5fc3e1c76f43a26385a3f680c0",
        "pathname": "/firebase/joshweaverspark/token",
        "path": "/firebase/joshweaverspark/token?token=-KA3RgJFHuDHz6BHvFQF%7C3b00cd5fc3e1c76f43a26385a3f680c0",
        "href": "https://admin.firebase.com/firebase/joshweaverspark/token?token=-KA3RgJFHuDHz6BHvFQF%7C3b00cd5fc3e1c76f43a26385a3f680c0"
      },
      "method": "GET",
      "headers": {
        "accept": "application/json"
      }
    }
  }
}

2 个答案:

答案 0 :(得分:3)

更新Node.js后,我能够部署该项目。 您可以通过更新Node.js来尝试相同的操作:

sudo npm install npm@latest -g

答案 1 :(得分:1)

在我的情况下,升级节点和npm还不够,但是升级firebase-tools可以解决问题

npm install -g firebase-tools