-
Notifications
You must be signed in to change notification settings - Fork 988
Increase size limit for JSON uploads to storage #8356
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
base: master
Are you sure you want to change the base?
Conversation
Tried testing this using https://github.com/aalej/issues-8355. Increasing the size limit removes the
|
Good catch, i just repro'd this too. Investigating before merging - also need to double check that this is actually new behavior EDIT: Just tested and this occurs even with an extremely small file - pretty sure we're doing something wrong in the curl, but I'm gonna poke around until I understand exactly whats going on |
@joehan FWIW there is a longstanding, separate bug where the emulator hangs forever when I upload certain files and set the Content-Type header. This has been an issue for at least a year but I just rerun my tests automatically when this happens, and it never happens with prod GCS so I ignored it. |
@joehan I just looked, the problem is that the handler for the upload POST endpoint tries to read the body here, but it has already been read by express.json here One fix would be to check for json in here: As written, it will hang forever in
Since express.json writes an empty object |
Description
The Storage emulator was applying an artificially low limit on upload size when Content-Type: application/json was set. Fixes #8355