Skip to content

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

Closed
@davidbielik

Description

[REQUIRED] Environment info

firebase-tools:
9.2.1

Platform:
macOS

[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)

firebase-issue-3041.zip - 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.

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions