Skip to content

fix: catch oversize image response #335

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 21, 2021
Merged

fix: catch oversize image response #335

merged 1 commit into from
May 21, 2021

Conversation

ascorbic
Copy link
Contributor

The maximum Lambda response size is 6MB. This PR catches any response larger than this and returns an error instead.

Fixes #308

@github-actions github-actions bot added the type: bug code to address defects in shipped code label May 21, 2021
@ascorbic ascorbic requested a review from lindsaylevine May 21, 2021 11:54
Copy link

@lindsaylevine lindsaylevine left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

legend

@ascorbic ascorbic merged commit 8b87fb0 into main May 21, 2021
@ascorbic ascorbic deleted the mk/max-image-size branch May 21, 2021 14:40
serhalp pushed a commit that referenced this pull request Apr 5, 2024
… background work taking longer than expected (#335)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug code to address defects in shipped code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Response payload exceeded for some images in next/image
2 participants