Skip to content

Retry installation hierarchy request on 204 No Content#36

Merged
martijnversluis merged 1 commit into
mainfrom
retry-204-installation-hierarchy
May 15, 2026
Merged

Retry installation hierarchy request on 204 No Content#36
martijnversluis merged 1 commit into
mainfrom
retry-204-installation-hierarchy

Conversation

@martijnversluis
Copy link
Copy Markdown
Contributor

Na het verlenen van toegang via OAuth geeft de Zaptec API soms een 204 terug voordat de autorisatie volledig verwerkt is. Bij een refresh werkt het wel.

Fix: retry eenmalig na 2 seconden. Als de tweede poging ook een 204 geeft, raise RequestFailed.

After granting access via OAuth, the Zaptec API occasionally returns a
204 before the authorization is fully processed. Retry once after 2
seconds, and raise RequestFailed if the second attempt also returns 204.
@martijnversluis martijnversluis force-pushed the retry-204-installation-hierarchy branch from 05d6987 to aaa0a08 Compare May 15, 2026 08:47
@martijnversluis martijnversluis merged commit ac4df6c into main May 15, 2026
@martijnversluis martijnversluis deleted the retry-204-installation-hierarchy branch May 15, 2026 08:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant