Skip to content

ConnectionError: Need to add both User-Agent header and timeout to requests #54

@jdholstein

Description

@jdholstein

Non-deterministically, tests will fail on master branch and all others due to requests.exceptions.ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response',))

This even happens on Docker and is not due to waiting for containers to spin up.

This can be prevented by adding a timeout and a User-Agent header to the request objects in api_client (in master) and wherever request is used in previous chapters

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