Firebase Serve command failing with error 404

家住魔仙堡 提交于 2019-11-30 09:02:33

The issue is with Google. When you run firebase serve it makes a request to https://mobilesdk-pa.googleapis.com which is currently throwing a 404 error.

I was able to get around this (temporary fix) by editing 3 files in node_modules/firebase-tools/lib.

On line 99 of api.js is where the bad URL is being called. Simply change that to any valid non-404ing url.

Then, in fetchWebSetup.js, change the parameter on line 9 after "GET" to a blank string (e.g. return api.request("GET", "", {

Do that same as above to functionsConfig.js on line 51.

This should get you up and running for now, but this should resolve itsself when Google fixes that URL.

Firebase employee here

There is a known problem with CLI deployment. It's being investigated. You can track the outage here:

https://status.firebase.google.com/incident/Hosting/18015

Whenever you experience a CLI failure like this, please contact Firebase support directly, with all the relevant details:

https://firebase.google.com/support/

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!