Project

General

Profile

This project is closed and read-only.

Actions

Backport #2779

closed

Net::HTTP#get raises NoMethodError

Backport #2779: Net::HTTP#get raises NoMethodError

Added by sdsykes (Stephen Sykes) over 16 years ago. Updated over 15 years ago.

Status:
Closed
Assignee:
-
[ruby-core:28296]

Description

=begin
I think this was introduced in Revision 25851:

require 'net/http'
nh = Net::HTTP.new("does_not_exist_at_all.com")
nh.get("/")
NoMethodError: undefined method closed?' for nil:NilClass from /usr/local/lib/ruby/1.8/net/http.rb:1060:in request'
from /usr/local/lib/ruby/1.8/net/http.rb:772:in `get'
from (irb):11
from /usr/local/lib/ruby/1.8/net/http.rb:2042
=end


Related issues 2 (0 open2 closed)

Is duplicate of Backport187 - Backport #2758: NoMethodError instead of Errno::ECONNREFUSED when Net::HTTP cannot connectClosedActions
Is duplicate of Backport187 - Backport #2708: NoMethodError exception generated when using net/httpClosedshyouhei (Shyouhei Urabe)Actions

Updated by shyouhei (Shyouhei Urabe) over 16 years ago Actions #1

  • Status changed from Open to Closed

=begin
This issue was solved with changeset r27955.
John, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.

=end

Actions

Also available in: PDF Atom