Skip to content

Add retries within Authentication #264

@confy

Description

@confy

Occasionally our internal network can be unreliable so we end up relying on retries in some requests.

There are no retries within the Authentication classes(specifically BearerAuth) so our pipelines can occasionally fail when encountering a short lived 503 or 504.

Would it be alright to add retries for authentication here? I would add with the same set of request codes as laid out here: https://github.com/blackducksoftware/hub-rest-api-python/blob/master/blackduck/Client.py#L34

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions