Skip to content
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

fix: Return 400 when blobs exceed max limit #140

Merged
merged 3 commits into from
Sep 20, 2024

Conversation

epociask
Copy link
Collaborator

Fixes Issue

Fixes #127

Changes proposed

Screenshots (Optional)

Note to reviewers

@epociask epociask requested a review from samlaf September 20, 2024 04:58
Copy link
Collaborator

@samlaf samlaf left a comment

Choose a reason for hiding this comment

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

Like the approach! But don't like the stringified errors. Just change the strings to actual errors everywhere, and use errors.Is to compare errors, and then we're gucci. Eventually I'd like to use custom errors everywhere instead of random fmt.Errorf's but this is a bigger endeavor.

e2e/server_test.go Show resolved Hide resolved
server/server.go Show resolved Hide resolved
server/server.go Outdated Show resolved Hide resolved
utils/utils.go Outdated Show resolved Hide resolved
store/memory.go Outdated Show resolved Hide resolved
@epociask epociask requested a review from samlaf September 20, 2024 05:50
@epociask epociask merged commit 71989c8 into main Sep 20, 2024
7 checks passed
@epociask epociask deleted the epociask--fix-oversized-blob-response-code branch September 20, 2024 19:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Potential bug: submitting oversized blob results in internal server error
2 participants