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.
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:
This is coming back from this line:
WeConnect-python/weconnect/auth/vw_web_session.py
Line 101 in 7ffb9be
The
locationcoming back with this 302 response is only a relative URL, so on the second loop around, it raises the exception listed above.