Skip to content

Error when checking is_auth_alive #71

@lie-nielsen

Description

@lie-nielsen

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions