Skip to content

fix: capture any server 401 as a UnauthorizedApiException - #101

Merged
robbi5 merged 1 commit into
pretix:masterfrom
kkostov:fix/handle-401
Oct 7, 2026
Merged

robbi5 merged 1 commit into
pretix:masterfrom
kkostov:fix/handle-401

Conversation

@kkostov

@kkostov kkostov commented Sep 25, 2026

Copy link
Copy Markdown
Contributor

This PR adapts how 401 responses from the server are handled. Previously, some 401 responses for which the detail message was not "Device access has been revoked." would be allowed as a "successful response" which causes serialization errors elsewhere in the library.

This PR changes this by recording the detail if present and throwing a UnauthorizedApiException typed exception.

@robbi5
robbi5 merged commit 6004bf3 into pretix:master Oct 7, 2026
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.

2 participants