Skip to content
This repository has been archived by the owner on Mar 26, 2023. It is now read-only.

Net::HTTP trying to call closed? on nil #446

Open
johnnyt opened this issue Mar 10, 2016 · 0 comments · May be fixed by #447
Open

Net::HTTP trying to call closed? on nil #446

johnnyt opened this issue Mar 10, 2016 · 0 comments · May be fixed by #447

Comments

@johnnyt
Copy link
Member

johnnyt commented Mar 10, 2016

When performing #request - if an error is raised there is an attempt to close the socket - which is sometimes nil - and the following error is raised which masks the original exception

NoMethodError - NoMethodError: undefined method `closed?' for NilClass:
.../maglev/lib/ruby/1.9/net/http.rb:1060:in `request'
.../maglev/lib/ruby/1.9/net/http.rb:1058:in `request'
@johnnyt johnnyt linked a pull request Mar 10, 2016 that will close this issue
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant