|
I'm wondering what the largest size data that I can place in a basket. I'm getting a status code 413 with a 'Payload Too Large' message. In this particular instance the data size is 123095 bytes. |
Answered by
imRohan
Jan 14, 2022
Replies: 1 comment 2 replies
|
@tpalgut That's a good question! There are 2 size limitations that have been added to Pantry. First, there is a hard limit of 1.44mb for each basket (link to line), and second, it seems like the middleware I'm using to parse the request (body-parser) has a default limit of 100kb per transaction. I'll create an issue to fix the 100kb request size (which will solve your 413 response issue), however, you will still not be able to have a basket with a max size greater than 1.44mb. Depending on performance and costs, I could bump the max size to 2mb. |
2 replies
Answer selected by
imRohan
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@tpalgut That's a good question!
There are 2 size limitations that have been added to Pantry.
First, there is a hard limit of 1.44mb for each basket (link to line), and second, it seems like the middleware I'm using to parse the request (body-parser) has a default limit of 100kb per transaction.
I'll create an issue to fix the 100kb request size (which will solve your 413 response issue), however, you will still not be able to have a basket with a max size greater than 1.44mb.
Depending on performance and costs, I could bump the max size to 2mb.