question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Large files cause "body size too long" error

See original GitHub issue

Transforming a large (9.8MB) gif causes a body size too long error. This seems related to the 6MB body payload size, as described in the Lambda Limits page. I think this issue will face image formats other than .gif, that’s just what I’ve seen it pop up on. Log screenshot below.

Any advice for how to work around this?

At the moment, I have an onError function on my <img /> tags that replaces the src with the original non-resized URL. But - this occurs in the worst case scenario, where we have huge files - so it’s really not desirable.

screen shot 2018-07-08 at 10 10 04 am

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:13 (4 by maintainers)

github_iconTop GitHub Comments

4reactions
pbirsingercommented, Aug 29, 2019

My json data response is 750kb (<<5MB). Why am I also getting this error? @stewwan if your file is 300kb why do you get the error too?

3reactions
hayesrycommented, Jun 13, 2019

We have added this as a feature request to our backlog for an upcoming release, but don’t have an ETA for when it will be ready. Marking the ticket for closure in the meantime.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Large files cause "body size too long" error · Issue #35 - GitHub
Transforming a large (9.8MB) gif causes a body size too long error. This seems related to the 6MB body payload size, as described...
Read more >
What Is a 413 Request Entity Too Large Error & How to Fix It
A 413 HTTP error code occurs when the size of a client's request exceeds the server's file size limit. This typically happens when...
Read more >
Attachment size exceeds the allowable limit error - Outlook
Attachment size exceeds the allowable limit error when you add a large attachment to an email message in Outlook.
Read more >
AWS Lambda - Body Size is Too Large Error ... - Stack Overflow
In one endpoint I am getting "body size is too long" printed to the cloudwatch log. The response I get from the function...
Read more >
Fixing 413 Request Entity Too Large Errors - KeyCDN Support
A 413 Request Entity Too Large error occurs when a request made from a client is too large to be processed by the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found