Firebase cli 引发错误:服务器错误.在每个命令上连接 ETIMEDOUT



我在堆栈溢出时检查了这个问题的所有答案。但所有这些都是由于其他一些原因而发生的。

井我正在尝试部署一些数据库规则并开始收到此错误。后来,当我尝试做任何事情时,我意识到没有一个 firebase 命令有效,并且一次又一次地抛出相同的错误。

我尝试过什么:将 Firebase 工具更新到最新版本重置我的互联网连接Firebase 登录 --Reauth

但没有运气。

以下是日志

[debug] [2018-12-25T05:41:52.644Z] ----------------------------------------------------------------------
[debug] [2018-12-25T05:41:52.648Z] Command:       C:Program Filesnodejsnode.exe C:UsersuserAppDataRoamingnpmnode_modulesfirebase-toolslibbinfirebase.js list
[debug] [2018-12-25T05:41:52.649Z] CLI Version:   6.2.2
[debug] [2018-12-25T05:41:52.649Z] Platform:      win32
[debug] [2018-12-25T05:41:52.649Z] Node Version:  v8.12.0
[debug] [2018-12-25T05:41:52.650Z] Time:          Tue Dec 25 2018 11:11:52 GMT+0530 (India Standard Time)
[debug] [2018-12-25T05:41:52.650Z] ----------------------------------------------------------------------
[debug] 
[debug] [2018-12-25T05:41:52.673Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
[debug] [2018-12-25T05:41:52.674Z] > authorizing via signed-in user
[debug] [2018-12-25T05:41:52.677Z] > refreshing access token with scopes: ["email","https://www.googleapis.com/auth/cloud-platform","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","openid"]
[debug] [2018-12-25T05:41:52.678Z] >>> HTTP REQUEST POST https://www.googleapis.com/oauth2/v3/token  
 <request body omitted>
[debug] [2018-12-25T05:41:53.273Z] <<< HTTP RESPONSE 200
[debug] [2018-12-25T05:41:53.336Z] >>> HTTP REQUEST GET https://admin.firebase.com/v1/projects  
[debug] [2018-12-25T05:42:14.888Z] Error: connect ETIMEDOUT 104.197.85.31:443
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1191:14)
[error] 
[error] Error: Server Error. connect ETIMEDOUT 104.197.85.31:443

请提出您对该问题的了解。

npm i -g firebase-tools

更新Firebase工具对我有用。然后,firebase deploy重试。

如果仍然不起作用,请尝试清除Firebase缓存,即.firebase文件

相关内容

  • 没有找到相关文章

最新更新