Skip to content

Retry requests.exceptions.RequestException? #88

@edsu

Description

@edsu

I was wondering if it might make sense for query() to retry requests.exceptions.RequestException errors?

https://github.com/digital-science/dimcli/blob/master/dimcli/core/api.py#L113-L196

I ran into a situation where a requests.exceptions.ChunkedEncodingError was being thrown because of some network error somewhere and it would have been helpful if the request got retried automtically since I was using retries=5.

More information about the exception can be found in sul-dlss/rialto-airflow#137

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions