vcrpy
vcrpy copied to clipboard
AttributeError: '_HTTPSConnection' object has no attribute '_baseclass'
trafficstars
has been trying to record a simple connection to a vCenter but it fails. When tracing that error I cannot understand what _baseclass stands for or where it is defined.
Please help!
this is all I find in the recording:

Did you ever figure this out?
I needed it again and had to search for it it's here: https://github.com/vmware/pyvmomi/issues/852 basically I added: my_vcr = config.VCR( custom_patches=((SoapAdapter, "_HTTPSConnection", VCRHTTPSConnection),) ) to the vcr definition.