Firebase Unable to fetch the CLI MOTD and remote config
Asked Answered
D

7

5

when trying to firebase deploy, getting this

! Unable to fetch the CLI MOTD and remote config.

and then it stops with:

Error: An unexpected error has occurred.

Anyone an idea?

It worked before, I didn't change anything. Windows 10, VSCode.

Daria answered 9/2, 2023 at 22:26 Comment(3)
Sounds like something you should raise as an issue. It's unlikely anybody here can helpBouffant
I'll add that I've been having this issue recently. But you should definitely still create an issue on the firebase-tools repo.Sticky
If you have a VPN try to connect/disconnect before login. I had that same issue.Tsui
A
3

run npm install -g firebase-tools

Auklet answered 20/5, 2023 at 8:8 Comment(0)
P
3

Try to logout from firebase and then login again

Pouch answered 15/2, 2023 at 15:7 Comment(3)
Your answer could be improved with additional supporting information. Please edit to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center.Noontide
It's correct answer for me. ~~~ firebase logout firebase login ~~~Ozonide
It worked for me. Firebase CLI somehow changed the way login used to work.Danndanna
A
3

run npm install -g firebase-tools

Auklet answered 20/5, 2023 at 8:8 Comment(0)
N
2

For me it was my company's firewall which prevented me from deploying the content.

Numerology answered 20/3 at 7:7 Comment(0)
R
0

As Danny Menocs says, I was trying to upload a flutter web project to firebase but had forgotten I had left my VPN on. Turned it off and connected fine.

Roadstead answered 1/6, 2023 at 16:2 Comment(0)
E
0

Make sure you are in your firebase functions folder before running the deploy command.

Eighteenth answered 1/9, 2023 at 13:33 Comment(0)
H
0

After some headaches, in my case, there was someting so dumb as I haven't installed firebase cli tool from Windows setup (Firebase CLI binary for Windows). I've installed only firebase-tools with npm.

Housecoat answered 22/4 at 9:2 Comment(0)
D
0

It could be due to SSL certificate issues, so you can try bypassing the checks as a workaround:

export NODE_TLS_REJECT_UNAUTHORIZED=0

After that I was finally able to deploy.

Deanery answered 18/10 at 21:11 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.