You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
vincentBaer
changed the title
urllib.parse.urlparse change of behavior with url in python3.9
urllib.parse.urlparse change of behavior using url with port in python3.9
Dec 10, 2021
Test without venv in centos7 and in docker python3.9.3 also.
Version: v1.7.1
Python3: 3.9.3
Config:
Command launch:
You have now :
Instead of with version python3.7 or python3.6:
With more investigation the issue is linked with the behavior of urllib.parse.urlparse (the same version in python3.7 and python 3.9 (urllib3==1.24.3)) https://github.com/outscale/osc-cli/blob/master/osc_sdk/sdk.py#L194
In python3.7:
In python3.9:
https://docs.python.org/3/library/urllib.parse.html (Following the syntax specifications in RFC 1808, urlparse recognizes a netloc only if it is properly introduced by ‘//’)
If you have add '//' in endpoint to respect RFC 1808, urllib.parse.urlparse parse correctly:
The text was updated successfully, but these errors were encountered: