We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I tried to use VCR (with excon, if that matters) to record various types of errors so I can make sure a client library handles them correctly.
In the code before serialization, it doesn't seem like TLS issues are considered.
Here's a code snippet that fails:
puts VCR.version # => 3.0.3 VCR.use_cassette('attempt_1', serialize_with: :json) do begin Excon.get('https://expired.badssl.com/') # SSL cert has expired. rescue => e # log something here end end
The JSON failure is on this line, response is nil, and thererefore VCR fails with the following truncated snippet:
nil
NoMethodError: undefined method `to_hash' for nil:NilClass [....]/lib/vcr/structs.rb:497:in `to_hash'
The text was updated successfully, but these errors were encountered:
I've tried this with a different combination of VCR/webmock/excon versions and wasn't able to reproduce this error 🤔
I was able to reproduce when using hook_into :excon. I'll try to make fix.
hook_into :excon
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
I tried to use VCR (with excon, if that matters) to record various types of errors so I can make sure a client library handles them correctly.
In the code before serialization, it doesn't seem like TLS issues are considered.
Here's a code snippet that fails:
The JSON failure is on this line, response is
nil
, and thererefore VCR fails with the following truncated snippet:The text was updated successfully, but these errors were encountered: