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

Error when checking is_auth_alive #71

Open
lie-nielsen opened this issue Nov 5, 2019 · 0 comments
Open

Error when checking is_auth_alive #71

lie-nielsen opened this issue Nov 5, 2019 · 0 comments

Comments

@lie-nielsen
Copy link

When using oauth_client.is_auth_alive the response from the server (when auth is expired) is HTML (shown at bottom), so when trying to json.load this in the json_response decorator an unhandled exception occurs: raise ValueError("No JSON object could be decoded")

<title>401 Unauthorized</title>

Unauthorized

The server could not verify that you are authorized to access the URL requested. You either supplied the wrong credentials (e.g. a bad password), or your browser doesn't understand how to supply the credentials required.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant