Skip to content

[Client] Improve HTTP error log  #671

@animeshk08

Description

@animeshk08

Current if an HTTP error is thrown by an API the log print error.response.reason as a result of

response.raise_for_status()

However, many times the actual reason for the error is returned in ``error.response.text`. A log message can be printed in case an exception is thrown. This will help users to easily debug the error and also possibly avoid the need of such checks:

if not group_download_archive:

if error.response.status_code == 404 and str(error.response.reason).upper() == 'NOT FOUND':

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions