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

Return a 503 when media uploads fail. #361

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Fizzadar
Copy link
Contributor

Using a 503 here so clients will know that this can be retried. The use-case here is when encountering closed connections or other issues uploading to S3, which appears to be relatively common (~0.1% of uploads-ish).

NOT happy with the approach here though, a blanket switch in status code seems wrong but I'm not sure on the best approach here to separate internal errors from upstream ones, hence the draft PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

2 participants