Skip to content
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

upload generic API large file fails silently with PayloadTooLargeError #296

Open
n2ygk opened this issue Jul 26, 2019 · 1 comment
Open

Comments

@n2ygk
Copy link

n2ygk commented Jul 26, 2019

Trying to add a generic API:

  1. Select the JSON file.
  2. Click Upload

Results in a greyed out upload UI and no message.

Viewing in Javascript console shows that the attempt to POST /prod/admin/catalog/visibility fails with an uncaught 413 status:

PayloadTooLargeError: request entity too large
   at IncomingMessage.onData (/var/task/node_modules/raw-body/index.js:246:12)
   at emitOne (events.js:116:13)
   at IncomingMessage.emit (events.js:211:7)
   at addChunk (_stream_readable.js:263:12)
   at readableAddChunk (_stream_readable.js:250:11)
   at IncomingMessage.Readable.push (_stream_readable.js:208:10)
   at HTTPParser.parserOnBody (_http_common.js:139:22)

I can provide a 330K example file if needed, but I expect any large file upload will break it.

@eegnoc
Copy link

eegnoc commented Oct 13, 2019

same issue for me. File size is 167kb, will be 350kb when done.

did some research and then reduced the file size to be just under 128kb and it loads just fine. so that eliminates a badly formatted file (mostly), or corrupt file.

*** edit this problem is ocurring when I try to load a yaml file

did some more research and I undertsand the AWS API gateway has a 128kb limit when using websockets. Is limit in play here? have I mucked up something fundamental.

Appreciate any advice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants