Skip to content

Retry token on 503 responses #360

@sveinse

Description

@sveinse

As described in #357 (comment) it has been observed that Zaptec may return 503, Service Unavailable. Currently _refresh_token() is failing on all non-error return codes. It should be considered to rather retry the request (with the exponential back-off).

https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/503

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