Skip to content

How to keep a connection with InvenTree open #242

@realstudent01

Description

@realstudent01

I am making a front end dashboard to view some information in a database with the InvenTree API. Seemingly randomly I am getting the following errors:

"requests.exceptions.ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))"

"requests.exceptions.ChunkedEncodingError: ("Connection broken: ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None)", ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))"

Is the issue that I need to do something to keep the api instance (that I initialize to make the connection) open? Or do I need to give a certain value as the timeout?

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