firebase / firebase/firebase-tools

Emulator storage limit doesn't match production limit

Open
#7,592 1 comment 1 reaction 1 assignee Claimed by @joehan View on GitHub
emulators: storage type: bug
Dominant language
TypeScript
Stars
4.5k
Forks
1.3k
Avg merge
1d 12h
Merged PRs (30d)
84

Description

### [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](https://cloud.google.com/storage/docs/uploads-downloads)

[firebase-debug.log](https://github.com/user-attachments/files/16736631/firebase-debug.log)
[firestore-debug.log](https://github.com/user-attachments/files/16736632/firestore-debug.log)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.