The following code block is throwing an EOF error but only for the specified domain:
require 'net/http'
uri = URI("https://api.discogs.com/database/search?q=wilco&token=mDwvoRKQSSGmKpvvxXLrABZXzFbiggcqhPHxUEXl")
response = Net::HTTP.get(uri)
The error message I see is:
~/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/openssl/buffering.rb:182:in `sysread_nonblock': end of file reached (EOFError)
I am able to curl the request without a hitch. I have tried using HTTParty, open-uri, and different versions of Ruby. I have also attempted the solutions mentioned here and here with no luck. Any help would be appreciated.