Open adammillerio opened 4 months ago
Hello, https://github.com/vmware/pyvmomi/commit/9a8956f7b4a91b491e63454b3eb3c59d4abb8a31 adds support for pinned certificates and refactors the connection generation. The issue should be fixed now. A maintenance patch can be published no sooner that two weeks from now.
Describe the bug
44d7b9f0c201a92018bac8324542c0adf96aa148 changed the underlying structure of proxy based Connections, which is resulting in a TypeError when any request is issued, such as the initial login request in SmartConnect:
Reproduction steps
httpProxyHost
andhttpProxyPort
specified as a HTTP forward proxy:Expected behavior
A connection is established and a ServiceInstance is returned using the provided HTTP forward proxy.
Additional context
This is likely caused by the
timeout
key onschemeArgs
only being set when ahttpProxyTimeout
is provided: https://github.com/vmware/pyvmomi/blob/master/pyVmomi/SoapAdapter.py#L1351As well as not setting the
port
key to thehttpProxyPort
provided.