proton-python-client
proton-python-client copied to clipboard
Fix a source of the 'Unknown API error.'
trafficstars
Hello dear Proton team and community,
Since November 2020 the parameter strict was removed from urllib3 for HTTPSConnectionPool class in connectionpool.py. Leaving the parameter strict in the call is shifting the next ones and timeout is taken as a boolean leading to the error 'Timeout cannot be a boolean, it must be an...' raising an UnknownConnectionError in api.py and finally the famous UnknownAPIError in the cli_wrapper.py.
This explains why so many people on forums have their proton cli not working after updating their packages with urllib3 among them.
Can confirm this works.