Skip to content

fix JSONDecodeError in _process_response#8

Open
dimonleksin wants to merge 1 commit into
passwork-me:mainfrom
dimonleksin:main
Open

fix JSONDecodeError in _process_response#8
dimonleksin wants to merge 1 commit into
passwork-me:mainfrom
dimonleksin:main

Conversation

@dimonleksin

Copy link
Copy Markdown

Added error handling for when the server response isn't in JSON format.

If Passwork is behind some kind of reverse proxy and has a whitelist configured, the response will be a text 413 - Access Denied, and the client won't be able to fix it because a JSONDecodeError will be raised, which isn't a server response.

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