Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle JSONDecodeError on empty responses #276

Merged
merged 2 commits into from
Nov 17, 2023
Merged

Conversation

michaelpaul
Copy link
Contributor

Description

Some endpoints like Reassign a terminal return an empty 200 response. That causes an JSONDecodeError from the client.

Fix that by improving error handling and supporting (successful) empty responses.

Fixes #274

@michaelpaul michaelpaul requested a review from a team as a code owner November 17, 2023 12:47
@michaelpaul michaelpaul enabled auto-merge (squash) November 17, 2023 12:48
@michaelpaul michaelpaul disabled auto-merge November 17, 2023 12:58
@michaelpaul michaelpaul enabled auto-merge (squash) November 17, 2023 13:13
@jillingk jillingk added the Fix label Nov 17, 2023
@michaelpaul michaelpaul merged commit b536679 into main Nov 17, 2023
3 checks passed
@michaelpaul michaelpaul deleted the fix-json-decode-error branch November 17, 2023 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TerminalsTerminalLevelApi.reassign_terminal throws JSONDecodeError
3 participants