Fix Bug in Python Script - urllib3 & Windows Proxy

Job ID: 35847111

Budget: $10 – $30 USD

OS: Windows 11
IDE: Pycharm 2.22.3.1
Python Version: 3.7
Proxy Type: Native Windows Proxy
Proxy IP/Port: 10.0.0.1:3128

When running the script in Pycharm I'm getting the below error.
---------------------------
ssl.SSLError: [SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1076)
During handling of the above exception, another exception occurred:

urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='mydomain.com', port=443): Max retries exceeded with url: /something/aaa.php (Caused by ProxyError('Your proxy appears to only use HTTP and not HTTPS, try changing your proxy URL to be HTTP. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#https-proxy-error-http-proxy', SSLError(SSLError(1, '[SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1076)'))))
---------------------------

I found 3 solutions on Google:

(a) Remove proxy. Unfortunately, that's not an option for me.
(b) change abc.mydomain.com from https to http. This is also not a good idea.
(c) Downgrade liburl3 from 1.26.14 to 1.23. I tried but this did not solve the problem.

I need someone to fix this bug.

IMP: I need someone to connect remotely to my laptop & fix the issue. I'll not be able to share the code.
Budget: $20

Thanks
Related categories: Python Scripting