Open prashant1diwase opened 3 months ago
When we tried to connect with the below details, it started giving the below error with pyvmomi 8.0.3.0.1
HTTPProxyConnection.call() missing 2 required positional arguments: 'port' and 'timeout'
server = "146.89.140.53" httpsProxy ='http://146.72.882.22:3128' proxy = urlparse(httpsProxy) smart_stub = SmartStubAdapter( host=server, httpProxyHost=proxy.hostname, httpProxyPort=proxy.port, disableSslCertValidation=True, )
It should be able to connect
However, when we checked further there was a change in implementation for pyvmomi 8.0.3.0.1 compared with pyvmomi 8.0.2.0.1. When we applied the fix given in https://github.com/vmware/pyvmomi/issues/1085, by changing committed files [connect.py, Security.py, SoapAdapter.py] (https://github.com/vmware/pyvmomi/commit/9a8956f7b4a91b491e63454b3eb3c59d4abb8a31) it gave different error -
[SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1006)')
Describe the bug
When we tried to connect with the below details, it started giving the below error with pyvmomi 8.0.3.0.1
Error
HTTPProxyConnection.call() missing 2 required positional arguments: 'port' and 'timeout'
Reproduction steps
When we tried to connect with the below details, it started giving the below error with pyvmomi 8.0.3.0.1
Code
Expected behavior
It should be able to connect
Additional context
Analysis
However, when we checked further there was a change in implementation for pyvmomi 8.0.3.0.1 compared with pyvmomi 8.0.2.0.1. When we applied the fix given in https://github.com/vmware/pyvmomi/issues/1085, by changing committed files [connect.py, Security.py, SoapAdapter.py] (https://github.com/vmware/pyvmomi/commit/9a8956f7b4a91b491e63454b3eb3c59d4abb8a31) it gave different error -
Error
[SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1006)')