Firebase托管新手。我将几个包含图像的文件夹部署到Firebase托管。
今天我面临着下面的问题。我对它一无所知。对此的任何帮助都非常感谢。
ERROR:
=== 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"
}
}
}
非常感谢!
答案 0 :(得分:3)
所有这些文件夹的总大小是什么。
错误:服务器错误。阅读ECONNRESET
看起来像网络问题。或者,在Firebase中取消未记录的限制后,您可能会收到重置数据包。
Firebase可能会上传文件的tar或zip。为什么不首先尝试添加一半的文件夹和图像,如果可行的话......
PS。我怀疑firebase是否有差异,只会上传不存在的内容。因此,您可能无法逐步添加文件以达到极限。上述所有方法都表明,在重置之前,您可以获得多少收益。
答案 1 :(得分:1)
我刚刚在部署到Firebase时遇到了此问题,而解决方案正是导致我撰写此帖子的原因。确保我的互联网连接良好后,我就成功部署了。
确保您的互联网正常,然后重新部署!
祝你好运!