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: Retry all 5xx status codes #2035

Merged

Conversation

asamasoma
Copy link
Contributor

@asamasoma asamasoma commented Nov 8, 2023

The documentation for the validate_response function states that 5xx error codes should raise a RetriableAPIError.

However, because max(HTTPStatus) evaluates to 511, the current implementation does not raise the expected error for valid custom error codes such as Cloudflare's "521 Web Server Is Down".

This PR removes the cap on RetriableAPIError status codes so that valid custom error codes will raise the expected error.


📚 Documentation preview 📚: https://meltano-sdk--2035.org.readthedocs.build/en/2035/

@edgarrmondragon edgarrmondragon changed the title fix: retry all 5xx status codes fix: Retry all 5xx status codes Nov 8, 2023
Copy link

codspeed-hq bot commented Nov 8, 2023

CodSpeed Performance Report

Merging #2035 will not alter performance

Comparing asamasoma:fix/retry-all-5xx-status-codes (f7930a4) with main (f4a86df)

Summary

✅ 1 untouched benchmarks

Copy link
Collaborator

@edgarrmondragon edgarrmondragon left a comment

Choose a reason for hiding this comment

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

Thanks @asamasoma!

@edgarrmondragon edgarrmondragon merged commit 8022703 into meltano:main Nov 8, 2023
27 of 28 checks passed
@asamasoma
Copy link
Contributor Author

Thanks @asamasoma!

Wow, fastest merge ever! Thanks for accepting my PR!

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.

2 participants