vcrpy icon indicating copy to clipboard operation
vcrpy copied to clipboard

AttributeError: '_HTTPSConnection' object has no attribute '_baseclass'

Open MennaKhaled opened this issue 5 years ago • 2 comments
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! image this is all I find in the recording: image image

MennaKhaled avatar May 08 '20 08:05 MennaKhaled

Did you ever figure this out?

budjb avatar Jun 26 '20 20:06 budjb

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.

MennaKhaled avatar Feb 01 '21 07:02 MennaKhaled