Firebase Serve command failing with error 404

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/