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
getting Timeout::Error but site is available and from curl gets a 200 #253
Comments
Definitely seeing this as well. I do not see it with curl or with Net::HTTP.get_response. That said, the odd thing is that it seems stuck in net/protocol, not anywhere in httparty. I don't have more time to investigate right now. |
I have the same problem. Suddenly and without changes in my code I'm having the same problem. In my case I'm using this gem to get the metadata of Videos from Vimeo: HTTParty.get('http://vimeo.com/api/v2/video/45230972.xml') without HTTParty works: Net::HTTP.get_response(URI( 'http://vimeo.com/api/v2/video/45230972.xml' )) Anyone an Idea? |
I had a similar problem, and I think I've got it tracked down (although mine was different because I was seeing it across curl, HTTParty, and Net::HTTP). The connection was timing out because DNS was trying to resolve addresses via IPv6 first and timing out (I think partially because the URL I was requesting had an IPv6 NS entry but no actual nameserver there). Anyway, I disabled IPv6 on my web server and it all works fine and dandy now. I couldn't find an option in HTTParty to force IPv4 requests, but if that's possible it would be an even better solution. |
This issue is a bit stale, and not clearly a problem in HTTParty. Wanna just close it? |
What is the solution to the above issue? |
using ruby 1.9.3
gem version 0.12.0
url: http://iopscience.iop.org/1758-5090/5/1/015013
invoking
response = HTTParty.get(url)
getting a Timeout::Error
debug_output:
but when invoking from bash with curl
curl -o /dev/null --silent --head --write-out '%{http_code}\n' "http://iopscience.iop.org/1758-5090/5/1/015013"
getting a 200
The text was updated successfully, but these errors were encountered: