Skip to content

Authorisation sometimes returns a 303 response #236

@HughMacdonald

Description

@HughMacdonald

I've been having some issues with my app today, and I've tracked it down to the auth url returning a 303.

What I end up seeing is this:

requests.exceptions.MissingSchema: Invalid URL '/u/login?state=<redacted>': No scheme supplied. Perhaps you meant https:///u/login?state=<redacted>?

This is coming back from this line:

url = response.headers['Location']

The location coming back with this 302 response is only a relative URL, so on the second loop around, it raises the exception listed above.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions