LoginSignup
18
14

More than 5 years have passed since last update.

Net::HTTP で、「end of file reached (EOFError)」というエラーが出た

Posted at

自分の場合は、use_ssl=trueをしたらうまく行った。

sample.rb
parsed_url = URI.parse(url)
http = Net::HTTP.new(parsed_url.host, parsed_url.port)
http.use_ssl = true

参考

18
14
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
18
14