firebase-tools icon indicating copy to clipboard operation
firebase-tools copied to clipboard

Emulator storage limit doesn't match production limit

Open Snugug opened this issue 6 months ago • 0 comments

[REQUIRED] Environment info

firebase-tools: 13.15.4

Platform: MacOS

[REQUIRED] Test case

npx firebase-tools emulators:start

[REQUIRED] Steps to reproduce

  1. Load the storage UI from a clean install of Firebase Tools
  2. Upload an image larger than 150MB
  3. Observe PayloadTooLargeError: request entity too large error

[REQUIRED] Expected behavior

I expect that the file size limit of the emulator to be equal to what the limit is in production.

[REQUIRED] Actual behavior

The limit is set to 136314880 bytes (~136MB) in the emulators (found by working back from the error, not by finding where it's explicitly set) whereas I believe the actual limit in Firebase is 5 TiB

firebase-debug.log firestore-debug.log

Snugug avatar Aug 24 '24 12:08 Snugug