刚接触 Firebase hosting。我将包含图片的几个文件夹部署到 Firebase hosting 上。
今天我遇到了以下问题,但是我对此一无所知。非常感谢您提供帮助。
错误信息:
=== Deploying to 'admob-app-id-4307XXXXXX'...
i deploying database, hosting
+ database: rules ready to deploy.
i hosting: preparing public directory for upload...
**Error: Server Error. read ECONNRESET**
C:\Users\NAME\Documents\Projects\Website\firebase>firebase deploy
**Error: HTTP Error: 500, An unknown error occurred. Please contact support.**
调试日志中的片段:
[debug] ----------------------------------------------------------------------
[debug] Command: C:\Program Files\nodejs\node.exe C:\Users\NAME\AppData\Roaming\npm\node_modules\firebase-tools\bin\firebase deploy
[debug] CLI Version: 3.4.0
[debug] Platform: win32
[debug] Node Version: v6.10.0
[debug] Time: Mon Mar 13 2017 14:07:38 GMT+0530 (India Standard Time)
[debug] ----------------------------------------------------------------------
[debug]
[debug] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase"]
[debug] >>> HTTP REQUEST GET https://admin.firebase.com/v1/projects/admob-app-id-XXXXXXXXXX
Mon Mar 13 2017 14:07:38 GMT+0530 (India Standard Time)
[debug] <<< HTTP RESPONSE 200
[debug] >>> HTTP REQUEST GET https://admin.firebase.com/v1/database/admob-app-id-XXXXXXXXXX/tokens
Mon Mar 13 2017 14:07:40 GMT+0530 (India Standard Time)
[debug] <<< HTTP RESPONSE 500
[debug] <<< HTTP RESPONSE BODY
[error]
[error] Error: HTTP Error: 500, An unknown error occurred. Please contact support.
[debug] Error Context: {
"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, 13 Mar 2017 08:37:34 GMT",
"content-type": "application/json; charset=utf-8",
"content-length": "97",
"connection": "close",
"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": null,
"query": null,
"pathname": "/v1/database/admob-app-id-XXXXXXXXXX/tokens",
"path": "/v1/database/admob-app-id-XXXXXXXXXX/tokens",
"href": "https://admin.firebase.com/v1/database/admob-app-id-XXXXXXXXXX/tokens"
},
"method": "GET"
}
}
}
非常感谢!