firebase login: Token Fetch Error
See original GitHub issueHi,
I’m having some trouble to login.
Version info
3.13.0
Steps to reproduce
$ firebase login --no-localhost --debug
Expected behavior
A sucessful login
Actual behavior
$ firebase login --no-localhost --debug
[2017-10-03T18:14:05.541Z] ----------------------------------------------------------------------
[2017-10-03T18:14:05.546Z] Command: /usr/local/bin/node /usr/local/bin/firebase login --no-localhost --debug
[2017-10-03T18:14:05.546Z] CLI Version: 3.13.0
[2017-10-03T18:14:05.546Z] Platform: linux
[2017-10-03T18:14:05.546Z] Node Version: v8.6.0
[2017-10-03T18:14:05.547Z] Time: Tue Oct 03 2017 15:14:05 GMT-0300 (BRT)
[2017-10-03T18:14:05.547Z] ----------------------------------------------------------------------
? Allow Firebase to collect anonymous CLI usage and error reporting information? No
Visit this URL on any device to log in:
https://accounts.google.com/o/oauth2/auth?client_id=563584335869-fgrhgmd47bqnekij5i8b5pr03ho849e6.apps.googleusercontent.com&scope=email%20openid%20https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fcloudplatformprojects.readonly%20https%3A%2F%2Fwww.googleapis.com%2Fauth%2Ffirebase%20https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fcloud-platform&response_type=code&state=866083077&redirect_uri=urn%3Aietf%3Awg%3Aoauth%3A2.0%3Aoob
? Paste authorization code here: 4/9FxonAqbx4paDM4BWzPaSLFuLbAUaTB8bS65YK5R_vc
[2017-10-03T18:14:20.567Z] >>> HTTP REQUEST POST https://accounts.google.com/o/oauth2/token { code: '4/9FxonAqbx4paDM4BWzPaSLFuLbAUaTB8bS65YK5R_vc',
client_id: '563584335869-fgrhgmd47bqnekij5i8b5pr03ho849e6.apps.googleusercontent.com',
client_secret: 'j9iVZfS8kkCEFUPaAeJV0sAi',
redirect_uri: 'urn:ietf:wg:oauth:2.0:oob',
grant_type: 'authorization_code' }
Tue Oct 03 2017 15:14:20 GMT-0300 (BRT)
[2017-10-03T18:14:20.582Z] Token Fetch Error: Error
at FirebaseError (/usr/local/lib/node_modules/firebase-tools/lib/error.js:11:17)
at Request._callback (/usr/local/lib/node_modules/firebase-tools/lib/api.js:32:23)
at self.callback (/usr/local/lib/node_modules/firebase-tools/node_modules/request/request.js:186:22)
at emitOne (events.js:115:13)
at Request.emit (events.js:210:7)
at Request.onRequestError (/usr/local/lib/node_modules/firebase-tools/node_modules/request/request.js:878:8)
at emitOne (events.js:115:13)
at ClientRequest.emit (events.js:210:7)
at ClientRequest.onError (/usr/local/lib/node_modules/firebase-tools/node_modules/tunnel-agent/index.js:179:21)
at Object.onceWrapper (events.js:316:30)
Error: Authentication Error: Your credentials are no longer valid. Please run firebase login --reauth
For CI servers and headless environments, generate a new token with firebase login:ci
Someone knows what’s going on?
Issue Analytics
- State:
- Created 6 years ago
- Reactions:13
- Comments:48 (2 by maintainers)
Top Results From Across the Web
Admin Authentication API Errors | Firebase - Google
Here is a full list of the error codes and descriptions, including recommended ... auth/id-token-expired, The provided Firebase ID token is expired.
Read more >Android Firebase Auth: Error Fetching Token [SOLVED]
Logic is simple. When you log in to firebase auth, firebase generate token and use it to perform operation on Firebase Database. After...
Read more >Error fetching access token Firebase Cloud Functions
via the "credential" property failed to fetch a valid Google OAuth2 access token with the following error: "Error fetching access token: Error ...
Read more >Firebase Golang Admin SDK: client.SessionCookie() returns ...
SessionCookie() returns 'oauth2: cannot fetch token: 400 Bad Request' ... Firebase auth to allow users to login using multiple IDPs (Google ...
Read more >firebase installations failed to get installation auth token for fetch.
I have added the remote config dependency in my project and tried to fetch the values but am unable to fetch the values...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I had the same issue and occasionally this helped me:
set "NODE_TLS_REJECT_UNAUTHORIZED=0"
and then re-run firebase loginI was running into this exact same issue. I restarted my machine–restarting Docker was probably enough, but hey!–and ran
docker system prune
.Once Docker was completely fresh, I ran my build again and it worked just fine.
I also added
set "NODE_TLS_REJECT_UNAUTHORIZED=0"
to my build script… so that could have helped too?