Skip to content

Bref Error on Laravel Endpoint #1062

Answered by mnapoli
nickrupert7 asked this question in Support
Discussion options

You must be logged in to vote

Hi!

First just to start with one general advice (to save yourself some time in the future): always look at the CloudWatch logs first whenever there's an error. That's where everything is logged. Everything else is usually just a distraction (like headers and such).

The error message is:

Error while calling the Lambda runtime API: The requested URL returned error: 413

413 is a HTTP status code that says:

413 Payload Too Large

My guess is that your endpoint returns a response that is larger than what Lambda allows: 6MB

Could it be the case?

If that's indeed the source of the error, we can probably write some code in Bref to "enhance" the 413 code with a more detailed error message.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@nickrupert7
Comment options

Answer selected by nickrupert7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants