Skip to content

No timeout on requests #2

@Tatermen

Description

@Tatermen

After a couple of days, I found that my Python script had hung while connecting to the Unifi controller. I believe this is because there is no timeout in the requests() call, per the Requests documentation:

You can tell Requests to stop waiting for a response after a given number of seconds with the timeout parameter. Nearly all production code should use this parameter in nearly all requests. Failure to do so can cause your program to hang indefinitely

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions