Firebase deploy command just hangs - firebase

I'm new to Firebase and this is my first attempt to deploy a Vue app.
What I'm doing is
'firebase init' in my project directory, with the dist folder chosen as default (instead of public recommended in documentation)
'firebase deploy' in my project directory
So, nothing happens. In the firebase-debug.log I see there are some successful connections but then the process just hangs
[debug] [2018-04-23T08:02:20.680Z] ----------------------------------------------------------------------
[debug] [2018-04-23T08:02:20.683Z] Command: C:\Users\---\scoop\apps\nodejs\current\node.exe C:\Users\---\scoop\apps\nodejs\current\bin\node_modules\firebase-tools\bin\firebase deploy
[debug] [2018-04-23T08:02:20.683Z] CLI Version: 3.18.4
[debug] [2018-04-23T08:02:20.683Z] Platform: win32
[debug] [2018-04-23T08:02:20.683Z] Node Version: v9.3.0
[debug] [2018-04-23T08:02:20.684Z] Time: Mon Apr 23 2018 11:02:20 GMT+0300 (RTZ 2 (╨╖╨╕╨╝╨░))
[debug] [2018-04-23T08:02:20.684Z] ----------------------------------------------------------------------
[debug]
[debug] [2018-04-23T08:02:20.694Z] > 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-04-23T08:02:20.694Z] > authorizing via signed-in user
[debug] [2018-04-23T08:02:20.696Z] >>> HTTP REQUEST GET https://admin.firebase.com/v1/projects/my-project some - id
Mon Apr 23 2018 11:02:20 GMT+0300 (RTZ 2 (╨╖╨╕╨╝╨░))
[debug] [2018-04-23T08:02:21.666Z] <<< HTTP RESPONSE 200
[debug] [2018-04-23T08:02:21.667Z] >>> HTTP REQUEST GET https://admin.firebase.com/v1/database/my-project some - id/tokens
Mon Apr 23 2018 11:02:21 GMT+0300 (RTZ 2 (╨╖╨╕╨╝╨░))
[debug] [2018-04-23T08:02:22.906Z] <<< HTTP RESPONSE 200

Related

trying to host my website on firebase gives error - An unexpected error has occured - Error log files included

I tried this command to host my app on firebase :
node_modules/.bin/firebase deploy --only hosting
And i get this error : "Error: An unexpected error has occurred"
These are the log files :
[error] Error: An unexpected error has occurred.
[debug] [2023-02-06T11:29:18.454Z] ----------------------------------------------------------------------
[debug] [2023-02-06T11:29:18.456Z] Command: D:\Program Files (x86)\node.exe C:\Users\JustDankas\Desktop\NextJS\books-app\node_modules\firebase-tools\lib\bin\firebase.js deploy --only hosting
[debug] [2023-02-06T11:29:18.456Z] CLI Version: 11.22.0
[debug] [2023-02-06T11:29:18.456Z] Platform: win32
[debug] [2023-02-06T11:29:18.457Z] Node Version: v17.8.0
[debug] [2023-02-06T11:29:18.458Z] Time: Mon Feb 06 2023 13:29:18 GMT+0200 (Eastern European Standard Time)
[debug] [2023-02-06T11:29:18.458Z] ----------------------------------------------------------------------
[debug]
[debug] [2023-02-06T11:29:18.539Z] > 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] [2023-02-06T11:29:18.540Z] > authorizing via signed-in user
[debug] [2023-02-06T11:29:18.540Z] [iam] checking project my-example-project for permissions ["firebase.projects.get","firebasehosting.sites.update"]
[debug] [2023-02-06T11:29:18.543Z] >>> [apiv2][query] POST https://cloudresourcemanager.googleapis.com/v1/projects/my-example-project:testIamPermissions [none]
[debug] [2023-02-06T11:29:18.543Z] >>> [apiv2][(partial)header] POST https://cloudresourcemanager.googleapis.com/v1/projects/my-example-project:testIamPermissions x-goog-quota-user=projects/example
[debug] [2023-02-06T11:29:18.543Z] >>> [apiv2][body] POST https://cloudresourcemanager.googleapis.com/v1/projects/my-example-project:testIamPermissions {"permissions":["firebase.projects.get","firebasehosting.sites.update"]}
[debug] [2023-02-06T11:29:19.588Z] <<< [apiv2][status] POST https://cloudresourcemanager.googleapis.com/v1/projects/my-example-project:testIamPermissions 200
[debug] [2023-02-06T11:29:19.589Z] <<< [apiv2][body] POST https://cloudresourcemanager.googleapis.com/v1/projects/my-example-project:testIamPermissions {"permissions":["firebase.projects.get","firebasehosting.sites.update"]}
[debug] [2023-02-06T11:29:19.590Z] >>> [apiv2][query] GET https://firebase.googleapis.com/v1beta1/projects/my-example-project [none]
[debug] [2023-02-06T11:29:20.083Z] <<< [apiv2][status] GET https://firebase.googleapis.com/v1beta1/projects/my-example-project 200
[debug] [2023-02-06T11:29:20.083Z] <<< [apiv2][body] GET https://firebase.googleapis.com/v1beta1/projects/my-example-project {"projectId":"my-example-project","projectNumber":"xxxxxxxxxxx","displayName":"Books-app","name":"projects/my-example-project","resources":{"hostingSite":"my-example-project","storageBucket":"my-example-project.appspot.com","locationId":"europe-west"},"state":"ACTIVE","etag":"adsaas"}
[debug] [2023-02-06T11:29:42.446Z] TypeError: Cannot read properties of null (reading 'toString')
at ɵcodegenFunctionsDirectory (C:\Users\JustDankas\Desktop\NextJS\books-app\node_modules\firebase-tools\lib\frameworks\next\index.js:222:18)
at async prepareFrameworks (C:\Users\JustDankas\Desktop\NextJS\books-app\node_modules\firebase-tools\lib\frameworks\index.js:306:84)
at async deploy (C:\Users\JustDankas\Desktop\NextJS\books-app\node_modules\firebase-tools\lib\deploy\index.js:53:13)
[error]
[error] Error: An unexpected error has occurred.
it builds fine locally , also firebase emulator hosts it properly on my local machine, but actual hosting don't work.
Tried to find toString() in my code, didn't find any, prob its not that

firebase projects:list fails to list projects even though firebase login has succeeded

I am trying to set up firebase for a Flutter app. I have successfully logged in using the firebase cli. But when I run
flutterfire configure
I get the following error in the debug log:
[debug] [2022-03-05T10:44:24.286Z] ----------------------------------------------------------------------
[debug] [2022-03-05T10:44:24.287Z] Command: /usr/local/bin/firebase /home/madlad/.cache/firebase/tools/lib/node_modules/firebase-tools/lib/bin/firebase projects:list --json
[debug] [2022-03-05T10:44:24.287Z] CLI Version: 10.2.2
[debug] [2022-03-05T10:44:24.287Z] Platform: linux
[debug] [2022-03-05T10:44:24.287Z] Node Version: v12.18.1
[debug] [2022-03-05T10:44:24.287Z] Time: Sat Mar 05 2022 16:14:24 GMT+0530 (India Standard Time)
[debug] [2022-03-05T10:44:24.287Z] ----------------------------------------------------------------------
[debug]
[debug] [2022-03-05T10:44:24.291Z] > 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] [2022-03-05T10:44:24.291Z] > authorizing via FIREBASE_TOKEN environment variable
[debug] [2022-03-05T10:44:24.293Z] > refreshing access token with scopes: []
[debug] [2022-03-05T10:44:24.293Z] >>> HTTP REQUEST POST https://www.googleapis.com/oauth2/v3/token
<request body omitted>
[debug] [2022-03-05T10:44:24.475Z] <<< HTTP RESPONSE 400 {"expires":"Mon, 01 Jan 1990 00:00:00 GMT","pragma":"no-cache","date":"Sat, 05 Mar 2022 10:44:24 GMT","cache-control":"no-cache, no-store, max-age=0, must-revalidate","content-type":"application/json; charset=utf-8","vary":"X-Origin, Referer, Origin,Accept-Encoding","server":"scaffolding on HTTPServer2","x-xss-protection":"0","x-frame-options":"SAMEORIGIN","x-content-type-options":"nosniff","alt-svc":"h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\"","accept-ranges":"none","transfer-encoding":"chunked"}
[debug] [2022-03-05T10:44:24.484Z] >>> [apiv2][query] GET https://firebase.googleapis.com/v1beta1/projects pageSize=1000
[debug] [2022-03-05T10:44:24.722Z] <<< [apiv2][status] GET https://firebase.googleapis.com/v1beta1/projects 401
[debug] [2022-03-05T10:44:24.722Z] <<< [apiv2][body] GET https://firebase.googleapis.com/v1beta1/projects [omitted]
[debug] [2022-03-05T10:44:24.724Z] HTTP Error: 401, Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.
[debug] [2022-03-05T10:44:24.891Z] FirebaseError: HTTP Error: 401, Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.
at module.exports (/home/madlad/.cache/firebase/tools/lib/node_modules/firebase-tools/lib/responseToError.js:47:12)
at RetryOperation._fn (/home/madlad/.cache/firebase/tools/lib/node_modules/firebase-tools/lib/apiv2.js:286:39)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
[error]
[error] Error: Failed to list Firebase projects. See firebase-debug.log for more info.
The existing solutions say try logging out and logging in again or firebase login --reauth. I have tried both of them and none of them are working.

error: Failed to list Firebase projects. See firebase-debug.log for more info

I was tying to create firestore web app by following the link https://firebase.google.com/codelabs/firestore-web#3
I came to 3rd lesson and I stuck at the below npm code
I have used firebase use --add
to list the projects.
I got the below error as firebase-console.log
**[debug] [2021-03-04T08:25:39.308Z] ----------------------------------------------------------------------
[debug] [2021-03-04T08:25:39.312Z] Command: C:\Program Files\nodejs\node.exe C:\Users\BKRK\AppData\Roaming\npm\node_modules\firebase-tools\lib\bin\firebase.js use --add
[debug] [2021-03-04T08:25:39.312Z] CLI Version: 9.5.0
[debug] [2021-03-04T08:25:39.313Z] Platform: win32
[debug] [2021-03-04T08:25:39.313Z] Node Version: v12.18.0
[debug] [2021-03-04T08:25:39.315Z] Time: Thu Mar 04 2021 13:55:39 GMT+0530 (India Standard Time)
[debug] [2021-03-04T08:25:39.315Z] ----------------------------------------------------------------------
[debug] [2021-03-04T08:25:39.316Z]
[debug] [2021-03-04T08:25:39.328Z] > 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] [2021-03-04T08:25:39.329Z] > authorizing via signed-in user
[debug] [2021-03-04T08:25:39.336Z] > refreshing access token with scopes: []
[debug] [2021-03-04T08:25:39.338Z] >>> HTTP REQUEST POST https://www.googleapis.com/oauth2/v3/token
<request body omitted>
[debug] [2021-03-04T08:25:42.275Z] <<< HTTP RESPONSE 400 {"expires":"Mon, 01 Jan 1990 00:00:00 GMT","date":"Thu, 04 Mar 2021 08:25:41 GMT","pragma":"no-cache","cache-control":"no-cache, no-store, max-age=0, must-revalidate","content-type":"application/json; charset=utf-8","vary":"X-Origin, Referer, Origin,Accept-Encoding","server":"scaffolding on HTTPServer2","x-xss-protection":"0","x-frame-options":"SAMEORIGIN","x-content-type-options":"nosniff","alt-svc":"h3-29=\":443\"; ma=2592000,h3-T051=\":443\"; ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\"","accept-ranges":"none","transfer-encoding":"chunked"}
[debug] [2021-03-04T08:25:42.279Z] >>> [apiv2][query] GET https://firebase.googleapis.com/v1beta1/projects pageSize=1000
[debug] [2021-03-04T08:25:43.402Z] <<< [apiv2][status] GET https://firebase.googleapis.com/v1beta1/projects 401
[debug] [2021-03-04T08:25:43.403Z] <<< [apiv2][body] GET https://firebase.googleapis.com/v1beta1/projects [omitted]
[debug] [2021-03-04T08:25:43.403Z] HTTP Error: 401, Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.
[debug] [2021-03-04T08:25:44.116Z] FirebaseError: HTTP Error: 401, Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.
at module.exports (C:\Users\BKRK\AppData\Roaming\npm\node_modules\firebase-tools\lib\responseToError.js:38:12)
at Client.doRequest (C:\Users\BKRK\AppData\Roaming\npm\node_modules\firebase-tools\lib\apiv2.js:238:23)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async Client.request (C:\Users\BKRK\AppData\Roaming\npm\node_modules\firebase-tools\lib\apiv2.js:96:20)
at async getProjectPage (C:\Users\BKRK\AppData\Roaming\npm\node_modules\firebase-tools\lib\management\projects.js:232:17)
at async getFirebaseProjectPage (C:\Users\BKRK\AppData\Roaming\npm\node_modules\firebase-tools\lib\management\projects.js:249:23)
at async listFirebaseProjects (C:\Users\BKRK\AppData\Roaming\npm\node_modules\firebase-tools\lib\management\projects.js:280:29)
[error]
[error] Error: Failed to list Firebase projects. See firebase-debug.log for more info.**
just type in the terminal
firebase login --reauth
should open the browser and log in to your account again, it worked for me.

Firebase Deploy "An unexpected error has occurred"

Trying to deploy a new site to Firebase (as I've done a dozen times, though haven't for a few months). Everything is going fine, but then when I get to "Firebase Deploy", I get "Error: An unexpected error has occurred". I've tried the suggestions given where a similar question was asked earlier ("An unexpected error has occurred" after firebase deploy) but none of them have done any good (keep getting the same error). Firebase is updated. Running on a Linux 64-bit (if it matters). I ran a debug on the deploy, and got the following log:
[debug] [2018-12-11T21:45:26.441Z] ----------------------------------------------------------------------
[debug] [2018-12-11T21:45:26.443Z] Command: /home/myName/.nvm/versions/node/v8.9.4/lib/node_modules/node/bin/node /home/myName/.nvm/versions/node/v8.9.4/bin/firebase deploy
[debug] [2018-12-11T21:45:26.443Z] CLI Version: 3.18.5
[debug] [2018-12-11T21:45:26.443Z] Platform: linux
[debug] [2018-12-11T21:45:26.443Z] Node Version: v10.3.0
[debug] [2018-12-11T21:45:26.443Z] Time: Tue Dec 11 2018 14:45:26 GMT-0700 (MST)
[debug] [2018-12-11T21:45:26.443Z] ----------------------------------------------------------------------
[debug]
[debug] [2018-12-11T21:45:26.448Z] > 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-11T21:45:26.448Z] > authorizing via signed-in user
[debug] [2018-12-11T21:45:26.449Z] > 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","open
[debug] [2018-12-11T21:45:26.450Z] >>> HTTP REQUEST POST https://www.googleapis.com/oauth2/v3/token
{ refresh_token: '1/9RM51tbmmz5VrjkpAxad-5CElD29bDNC-Dyu-L6-9hw',
client_id:
'563584335869-fgrhgmd47bqnekij5i8b5pr03ho849e6.apps.googleusercontent.com',
client_secret: 'j9iVZfS8kkCEFUPaAeJV0sAi',
grant_type: 'refresh_token',
scope:
'email https://www.googleapis.com/auth/cloud-platform https://www.googleapis.com/auth/cloudplatformprojects.readonly https://www.googleapis.com/auth/firebase openid' }
Tue Dec 11 2018 14:45:26 GMT-0700 (MST)
[debug] [2018-12-11T21:45:26.674Z] <<< HTTP RESPONSE 200
[debug] [2018-12-11T21:45:27.581Z] >>> HTTP REQUEST GET https://admin.firebase.com/v1/projects/my-home-page-ed336
Tue Dec 11 2018 14:45:27 GMT-0700 (MST)
[debug] [2018-12-11T21:45:27.871Z] <<< HTTP RESPONSE 200
[debug] [2018-12-11T21:45:27.873Z] >>> HTTP REQUEST GET https://admin.firebase.com/v1/database/my-home-page-ed336/tokens
Tue Dec 11 2018 14:45:27 GMT-0700 (MST)
[debug] [2018-12-11T21:45:28.270Z] <<< HTTP RESPONSE 200
[info]
[info] === Deploying to 'my-home-page-ed336'...
[info]
[info] i deploying hosting
[info] i hosting: preparing . directory for upload...
[debug] [2018-12-11T21:45:28.733Z] >>> HTTP REQUEST PUT https://deploy.firebase.com/v1/hosting/my-home-page-ed336/uploads/-LTUDqAhHObNxZ0HsRuG?fileCount=114&message=
Tue Dec 11 2018 14:45:28 GMT-0700 (MST)
[debug] [2018-12-11T21:45:36.863Z] <<< HTTP RESPONSE 410
[debug] [2018-12-11T21:45:36.864Z] <<< HTTP RESPONSE BODY undefined
[debug] [2018-12-11T21:45:36.867Z] TypeError: Cannot read property 'error' of undefined
at module.exports (/home/myName/.nvm/versions/node/v8.9.4/lib/node_modules/firebase-tools/lib/responseToError.js:10:13)
at Request._callback (/home/myName/.nvm/versions/node/v8.9.4/lib/node_modules/firebase-tools/lib/api.js:47:25)
at Request.self.callback (/home/myName/.nvm/versions/node/v8.9.4/lib/node_modules/firebase-tools/node_modules/request/request.js:185:22)
at Request.emit (events.js:182:13)
at Request.EventEmitter.emit (domain.js:442:20)
at Request.<anonymous> (/home/myName/.nvm/versions/node/v8.9.4/lib/node_modules/firebase-tools/node_modules/request/request.js:1157:10)
at Request.emit (events.js:182:13)
at Request.EventEmitter.emit (domain.js:442:20)
at IncomingMessage.<anonymous> (/home/myName/.nvm/versions/node/v8.9.4/lib/node_modules/firebase-tools/node_modules/request/request.js:1079:12)
at Object.onceWrapper (events.js:273:13)
[error]
[error] Error: An unexpected error has occurred.
[debug] [2018-12-11T21:45:49.697Z] ----------------------------------------------------------------------
[debug] [2018-12-11T21:45:49.699Z] Command: /home/myName/.nvm/versions/node/v8.9.4/lib/node_modules/node/bin/node /home/myName/.nvm/versions/node/v8.9.4/bin/firebase deploy --debug
[debug] [2018-12-11T21:45:49.700Z] CLI Version: 3.18.5
[debug] [2018-12-11T21:45:49.700Z] Platform: linux
[debug] [2018-12-11T21:45:49.700Z] Node Version: v10.3.0
[debug] [2018-12-11T21:45:49.700Z] Time: Tue Dec 11 2018 14:45:49 GMT-0700 (MST)
[debug] [2018-12-11T21:45:49.700Z] ----------------------------------------------------------------------
[debug]
[debug] [2018-12-11T21:45:49.705Z] > 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-11T21:45:49.705Z] > authorizing via signed-in user
[debug] [2018-12-11T21:45:49.707Z] >>> HTTP REQUEST GET https://admin.firebase.com/v1/projects/my-home-page-ed336
Tue Dec 11 2018 14:45:49 GMT-0700 (MST)
[debug] [2018-12-11T21:45:50.018Z] <<< HTTP RESPONSE 200
[debug] [2018-12-11T21:45:50.021Z] >>> HTTP REQUEST GET https://admin.firebase.com/v1/database/my-home-page-ed336/tokens
Tue Dec 11 2018 14:45:50 GMT-0700 (MST)
[debug] [2018-12-11T21:45:50.315Z] <<< HTTP RESPONSE 200
[info]
[info] === Deploying to 'my-home-page-ed336'...
[info]
[info] i deploying hosting
[info] i hosting: preparing . directory for upload...
[debug] [2018-12-11T21:45:50.768Z] >>> HTTP REQUEST PUT https://deploy.firebase.com/v1/hosting/my-home-page-ed336/uploads/-LTUDvYyTmVMnTOVgYO3?fileCount=114&message=
Tue Dec 11 2018 14:45:50 GMT-0700 (MST)
[debug] [2018-12-11T21:45:57.867Z] <<< HTTP RESPONSE 410
[debug] [2018-12-11T21:45:57.868Z] <<< HTTP RESPONSE BODY undefined
[debug] [2018-12-11T21:45:57.871Z] TypeError: Cannot read property 'error' of undefined
at module.exports (/home/myName/.nvm/versions/node/v8.9.4/lib/node_modules/firebase-tools/lib/responseToError.js:10:13)
at Request._callback (/home/myName/.nvm/versions/node/v8.9.4/lib/node_modules/firebase-tools/lib/api.js:47:25)
at Request.self.callback (/home/myName/.nvm/versions/node/v8.9.4/lib/node_modules/firebase-tools/node_modules/request/request.js:185:22)
at Request.emit (events.js:182:13)
at Request.EventEmitter.emit (domain.js:442:20)
at Request.<anonymous> (/home/myName/.nvm/versions/node/v8.9.4/lib/node_modules/firebase-tools/node_modules/request/request.js:1157:10)
at Request.emit (events.js:182:13)
at Request.EventEmitter.emit (domain.js:442:20)
at IncomingMessage.<anonymous> (/home/myName/.nvm/versions/node/v8.9.4/lib/node_modules/firebase-tools/node_modules/request/request.js:1079:12)
at Object.onceWrapper (events.js:273:13)
[error]
[error] Error: An unexpected error has occurred.
Thanks for everyone's help!
Your Firebase CLI is very old. Update it with npm install -g firebase-tools. Latest version at this moment is 6.1.2.
update your firebase CLI with this command
npm install -g firebase-tools
then initialize your firebase with
firebase init
Now its time to deploy the project
firebase deploy

firebase init gives EPROTO error

Running firebase init command gives an EPROTO error. Same error when I try firebase list. I can successfully use firebase login though. Here is the output of the firebase.debug.log:
[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:
Cause:
Eventually I found that my ISP had updated its so-called Kids Safe security settings and was treating admin.firebase.com as a blocked file sharing site.
Solution:
I updated my settings in the ISPs config, so that access to firebase.com was always allowed. Now firebase init, firebase list etc are working fine.

Resources