Increase size limit for JSON uploads to storage#8356
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 |
|
@joehan what's the status on this? This is still a problem, as far as I can see |
|
Hey @andersonaddo - this PR had been abandoned because it turned out the issue was a bit more complex than I originally thought. Closing it in favor of #10800, which I beleive actually fixes the issue. |
Pull request was closed
Description
The Storage emulator was applying an artificially low limit on upload size when Content-Type: application/json was set. Fixes #8355