-
Notifications
You must be signed in to change notification settings - Fork 184
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
Handle upload exceptions allowing --retries to work properly #3558
Conversation
596e6c1
to
93b141e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This LGTM good job I have some questions about the test that I want to @Glutexo to take a look at them.
89a8fe7
to
4048c28
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🦭
Thanks for the review/approval @ahitacat . Unfortunately I don't have permissions to merge this PR. Are you able to do that? Thanks. |
No, I don't have that power |
Signed-off-by: Mark Huth <[email protected]> (cherry picked from commit d0dc83c)
Signed-off-by: Mark Huth <[email protected]>
Signed-off-by: Mark Huth [email protected]
All Pull Requests:
Check all that apply:
This is to fix https://bugzilla.redhat.com/show_bug.cgi?id=2117686
The insights-core connection.py._http_request() code doesn't handle network exceptions. Callers of this function just get status_codes containing errors rather than any network exception handling. This PR catches network exceptions in the _http_request() method and raises them up the call stack until they are caught in the client.py.upload() and _legacy_upload() functions. This allows the --retries option to work correctly because before, --retries didn't work if there was a network exception.