-
Notifications
You must be signed in to change notification settings - Fork 373
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AttributeError when recording HTTPS request #66
Comments
Probably an issue with VCR, it works by monkeypatching out the httplib stuff with its own VCRHTTPSConnection, which might not implement the (bizarre) stdlib API 100% correctly.
This tells me that since the send() probably needs to check and if Just of the top of my head, I don't have time to look into this too deeply right now :) |
After looking into this a bit futher, I think this is caused by Boto's reuse of the existing HTTP connection (keepalive). This breaks some of my assumptions I made when designing the mock. |
I think there might also be an issue with the signature process and timestamps, might need to mock out the time too. Yikes :) |
Actually the timestamp thing can be solved with a customer marcher that ignores the Date header. |
OK, this should be fixed in master, give it a try and let me know if/how it works for you. |
Not sure if this is a problem with the HTTPS implementation in vcrpy or the boto implementation specifically, but when recording a s3 request made via boto, VCR throws the following error:
Assuming you have a AWS_CREDENTIAL_FILE, you can reproduce it with this code:
If I have time later today I will try and narrow this down to something that doesn't require boto, and if I can, then I should be able to make a fix too. Haven't really dug into vcrpy's source yet so any pointers are welcome.
The text was updated successfully, but these errors were encountered: