firebase deploy --only托管提供错误:HTTP错误:410,未知错误 [英] firebase deploy --only hosting gives Error: HTTP Error: 410, Unknown Error
问题描述
这是我的日志:
[info] === Deploying to 'test-123'...
[info]
[info] i deploying hosting
[info] i hosting: preparing public directory for upload...
[debug] [2018-10-25T15:39:54.587Z] >>> HTTP REQUEST PUT https://deploy.firebase.com/v1/hosting/test-123/uploads/-LPfsRseOoTTgVVj-keR?fileCount=81&message=
Thu Oct 25 2018 21:09:54 GMT+0530 (India Standard Time)
[debug] [2018-10-25T15:40:00.337Z] <<< HTTP RESPONSE 410
[debug] [2018-10-25T15:40:00.337Z] <<< HTTP RESPONSE BODY undefined
[debug] [2018-10-25T15:40:00.339Z] TypeError: Cannot read property 'error' of undefined
at module.exports (C:\Users\user\AppData\Roaming\npm\node_modules\firebase-tools\lib\responseToError.js:10:13)
at Request._callback (C:\Users\user\AppData\Roaming\npm\node_modules\firebase-tools\lib\api.js:47:25)
at Request.self.callback (C:\Users\user\AppData\Roaming\npm\node_modules\firebase-tools\node_modules\request\request.js:186:22)
at emitTwo (events.js:126:13)
at Request.emit (events.js:214:7)
at Request.<anonymous> (C:\Users\user\AppData\Roaming\npm\node_modules\firebase-tools\node_modules\request\request.js:1163:10)
at emitOne (events.js:116:13)
at Request.emit (events.js:211:7)
at IncomingMessage.<anonymous> (C:\Users\user\AppData\Roaming\npm\node_modules\firebase-tools\node_modules\request\request.js:1085:12)
at Object.onceWrapper (events.js:313:30)
[error]
[error] Error: An unexpected error has occurred.
直到昨天一切都很好
当我一次或全部部署功能时,一切正常
when i deploy functions one by one or all at the same time everything works fine
如果有人知道,请提出一些建议
please suggest something if someone knows about it
它说我搜索了HTTPS错误410,发现这意味着资源已移动
it says HTTPS ERROR 410 which i googled and found out that means the resource has moved
所以请求的网址可能无法正常工作,但是当我将其放在浏览器中时可以正常工作
so the url requested might not be working but when i put that in browser its working fine
我升级了节点,所有npm模块仍然没有运气
and i upgraded node, all npm modules still no luck
推荐答案
I found this response from the firebase-community Slack group https://firebase-community.slack.com:
如果收到
410
错误,则可能需要更新cli版本(firebase-tools
).更新到最新版本应该可以修复它.您需要将CLI版本至少升级到4.1.0(建议> = 5.1.1).
If you are receiving a
410
error, you will likely need to update your cli version (firebase-tools
). Updating to the latest version should fix it. You will need to upgrade your CLI version to at least 4.1.0 (>= 5.1.1 is recommended).
我以前使用的是firebase-tools
:版本3.18.4,并且升级到最新版本后,(5.1.1),我能够成功部署:
I was using firebase-tools
: version 3.18.4 previously, and after upgrading to the latest version (5.1.1), I was able to deploy successfully:
npm install -g firebase-tools@5.1.1
这篇关于firebase deploy --only托管提供错误:HTTP错误:410,未知错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!