-
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. |
Beta Was this translation helpful? Give feedback.
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. |
Beta Was this translation helpful? Give feedback.
@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.