Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Firebase SDK proxy error: net::ERR_CONTENT_DECODING_FAILED 200 (OK) #3052

davidbielik opened this issue Jan 17, 2021 · 5 comments · Fixed by #3065

Firebase SDK proxy error: net::ERR_CONTENT_DECODING_FAILED 200 (OK) #3052

davidbielik opened this issue Jan 17, 2021 · 5 comments · Fixed by #3065


Copy link

davidbielik commented Jan 17, 2021

[REQUIRED] Environment info



[REQUIRED] Test case

  1. Unzip, and run firebase emulators:start --only hosting --project your-project-id from within the directory
  2. Load http://localhost:5000/
  3. GET http://localhost:5000/__/firebase/8.2.3/firebase-app.js net::ERR_CONTENT_DECODING_FAILED 200 (OK) - same repro files as #3041

[REQUIRED] Steps to reproduce

  1. Make index.html which contains:
<script src="/__/firebase/8.2.3/firebase-app.js"></script>
<script src="/__/firebase/8.2.3/firebase-analytics.js"></script>
<script src="/__/firebase/init.js"></script>
  1. Start the hosting emulator:
firebase emulators:start --only hosting
  1. Load http://localhost:5000/ and inspect javascript errors

[REQUIRED] Expected behavior

firebase-app.js loads correctly

[REQUIRED] Actual behavior

GET http://localhost:5000/__/firebase/8.2.3/firebase-app.js net::ERR_CONTENT_DECODING_FAILED 200 (OK)

This does not seem to happen in production and only affects the emulator's response of the firebase libraries.

@davidbielik davidbielik changed the title GET http://localhost:5000/__/firebase/8.2.2/firebase-app.js net::ERR_CONTENT_DECODING_FAILED 200 (OK) GET http://localhost:5000/__/firebase/8.2.3/firebase-app.js net::ERR_CONTENT_DECODING_FAILED 200 (OK) Jan 17, 2021
Copy link

@bkendall this seems like it could be related to your recent changes in #3042

@bkendall bkendall changed the title GET http://localhost:5000/__/firebase/8.2.3/firebase-app.js net::ERR_CONTENT_DECODING_FAILED 200 (OK) Firebase SDK proxy error: net::ERR_CONTENT_DECODING_FAILED 200 (OK) Jan 19, 2021
Copy link

I'm able to replicate this, but it's 8.2.2/firebase-analytics that's not loading for me. Interestingly, I updated it to 8.2.3 and the issue went away. I wonder if there's a problem with that particular version of the file? I can look a bit more, but could you try changing the version number and seeing if the issue persists? When I curl the 8.2.2 version of the file on the local emulator, the output is definitely incomplete, so that definitely flags an issue for me of some kind.

Copy link
Contributor Author

hey @bkendall upgrading the version number still showed the error for a few refreshes, but then resolved itself somehow. I'm unable to make a consistent reproduction case unfortunately.

Copy link

Yeah, I am in the same boat. I actually think this and #3055 are pushing me towards there being some kind of issue in the proxying logic where the response is being truncated. Unfortunately it's tricky to debug this kind of issue, so I'll need some time. Thanks for raising and your patience.

Copy link

abrice commented Mar 10, 2021

In javascript, I had the error with 8.2.3 earlier today so I changed the link to 8.2.10 and it resolved, all back to normal. I have never had the error before.

Now it has just failed with:
GET http://localhost:5000/__/firebase/8.2.10/firebase-app.js net::ERR_CONTENT_DECODING_FAILED 200 (OK)
and changing versions makes no difference.

So, Firebase dev is now dead. This is a big problem.

This was referenced Mar 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet

Successfully merging a pull request may close this issue.

4 participants