2017-10-28 52 views
0

運行firebase init命令會導致EPROTO錯誤。我嘗試使用Firebase列表時出現同樣的錯誤。儘管我可以成功使用Firebase登錄。這裏是firebase.debug.log的輸出:firebase init會給出EPROTO錯誤

[debug] ---------------------------------------------------------------------- 
[debug] Command:  C:\Program Files\nodejs\node.exe C:\Users\andre\AppData\Roaming\npm\node_modules\firebase-tools\bin\firebase init 
[debug] CLI Version: 3.13.1 
[debug] Platform:  win32 
[debug] Node Version: v8.8.1 
[debug] Time:   Sat Oct 28 2017 12:35:18 GMT+0100 (GMT Summer Time) 
[debug] ---------------------------------------------------------------------- 
[debug] 
[debug] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase"] 
[debug] [2017-10-28T11:35:18.899Z] > authorizing via signed-in user 
You're about to initialize a Firebase project in this directory: 

    C:\Users\andre\Documents\cake-poly20-test 

[info] 
=== Project Setup 
[info] 
[info] First, let's associate this project directory with a Firebase project. 
[info] You can create multiple project aliases by running firebase use --add, 
[info] but for now we'll just set up a default project. 
[info] 
[debug] > refreshing access token with scopes: ["email","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","openid"] 
[debug] >>> HTTP REQUEST POST https://www.googleapis.com/oauth2/v3/token { refresh_token: '<token>', 
    client_id: '<clientid>.apps.googleusercontent.com', 
    client_secret: '<secret>', 
    grant_type: 'refresh_token', 
    scope: 'email https://www.googleapis.com/auth/cloudplatformprojects.readonly https://www.googleapis.com/auth/firebase openid' } 
Sat Oct 28 2017 12:35:25 GMT+0100 (GMT Summer Time) 
[debug] <<< HTTP RESPONSE 200 
[debug] >>> HTTP REQUEST GET https://admin.firebase.com/v1/projects 
Sat Oct 28 2017 12:35:25 GMT+0100 (GMT Summer Time) 
[debug] Error: write EPROTO 101057795:error:140773E8:SSL routines:SSL23_GET_SERVER_HELLO:reason(1000):openssl\ssl\s23_clnt.c:772: 

    at _errnoException (util.js:1024:11) 
    at WriteWrap.afterWrite [as oncomplete] (net.js:870:14) 
[error] 
[error] Error: Server Error. write EPROTO 101057795:error:140773E8:SSL routines:SSL23_GET_SERVER_HELLO:reason(1000):openssl\ssl\s23_clnt.c:772: 

回答

0

後來我發現我的ISP已經更新了其所謂的「孩子的安全」的安全設置,並處理admin.firebase.com爲阻止的文件共享現場。我更新了ISPs配置中的設置,以便始終允許訪問firebase.com。現在firebase init,firebase列表等工作正常。