413 Request Entity Too Large

Greetings to community. I have Retool app which is connected to my workflow.
This app grabs csv from AWS S3 and allows user to query some data in this csv.
I've added few columns to this CSV and then my app isn't working now. It says:

{"data":null,"error":"\r\n413 Request Entity Too Large\r\n\r\n

413 Request Entity Too Large

\r\n
nginx\r\n\r\n\r\n"}

In my workflow I have a piece of code that gets data from S3 (it works ok). After that it's followed by python code which is trying to decode this data. In this python code I started having this issue.

File size on my S3 in 9.9Mb

Could someone help with that?


2 Likes

Hey @dante1879 - thanks for reaching out and for your patience! This particular error generally means that the payload being passed into the block exceeds the limit as defined by nginx.

It looks like you're on a cloud instance, but can you confirm? If that's the case, there isn't a way to circumvent this limitation, so you will likely need to chunk your data and handle it in a loop, instead. Let me know if you have any questions about implementing such a pattern!

Have you had a chance to revisit this, @dante1879?

6 posts were split to a new topic: Workflow block throws 413 error when referencing large data set