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

refactor: display a better error msg on status error #44

Merged
merged 1 commit into from
Jul 23, 2024

Conversation

McPatate
Copy link
Member

I was getting "No content length" as an error message while investigating a potential issue, which was confusing because it was not the actual error but only a side effect of the status error.

Adding an .error_for_status() call on the response object makes things clearer.

@McPatate McPatate requested review from Narsil and XciD July 23, 2024 09:08
@McPatate McPatate force-pushed the refactor/display_better_err_msg_on_status_err branch from 6fd63c5 to 9e6be24 Compare July 23, 2024 09:47
@McPatate McPatate merged commit 27c5ab5 into main Jul 23, 2024
12 checks passed
@McPatate McPatate deleted the refactor/display_better_err_msg_on_status_err branch July 23, 2024 09:51
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