Skip to content
This repository was archived by the owner on Aug 2, 2021. It is now read-only.
This repository was archived by the owner on Aug 2, 2021. It is now read-only.

Calls sometimes never complete on network timeout #5

@DatDraggy

Description

@DatDraggy

I've been using this package for multiple projects now and have noticed that sometimes when a network error occurs (IP reassignment with dynamic ip for example) during a call, the function never returns and hangs indefinitely. The problem becomes apparent very much in the telegram flexpool block notification bot. I've had to write a watchdog script that restarts the service when the last_blocks() runs into this issue.
I have also noticed the same in the homeassistant flexpool integration I wrote using this library. Screenshot
Screenshot2

I haven't quite figured out the reason for this. I assume it's the requests lib it's using. Would setting a timeout solve this?
If I can find some time I'll try debugging this further, but for now I'm opening an issue.

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