Bugs item #29168, was opened at 2011-05-05 16:46
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=575&aid=29168&group_id=126

Category: None
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Bala Paranj (bparanj)
Assigned to: Evan Phoenix (evan)
>Summary: gem install <gem_name> gives vague error when 
>not connected to network

Initial Comment:
Example:

$ gem install heroku
ERROR:  http://gems.rubyforge.org/ does not appear to be a repository
ERROR:  Could not find a valid gem 'heroku' (>= 0) in any repository

Here is the code that can be used in the patch to handle different scenarios to 
give user useful feedback to recover from error:

 rescue SocketError => serror
   puts "You are not connected to the network."
 rescue Errno::ECONNREFUSED => cerror
   puts "Server is down"
 rescue => e
   puts "Exception #{e.message} occurred"
 end

----------------------------------------------------------------------

>Comment By: Bala Paranj (bparanj)
Date: 2011-05-05 17:18

Message:

With rubygems 1.8, When I run : gem install heroku :

ERROR:  Could not find a valid gem 'heroku' (>= 0) in any
repository
ERROR:  Possible alternatives: engine_yard


----------------------------------------------------------------------

Comment By: Bala Paranj (bparanj)
Date: 2011-05-05 17:14

Message:
Sorry the original report was for 1.3.7. Testing for 1.8 now.


----------------------------------------------------------------------

Comment By: Bala Paranj (bparanj)
Date: 2011-05-05 17:11

Message:
One more scenario: When you are connected to a public
network and you have not agreed to the terms and conditions,
it throws "Zlib error". Nice to have message : "Are you at
Starbucks? You have not agreed to the terms and conditions."

----------------------------------------------------------------------

Comment By: Evan Phoenix (evan)
Date: 2011-05-05 16:58

Message:
Please check again with Rubygems 1.8. I'm currently getting an error report 
like:


ERROR:  Could not find a valid gem 'blah' (>= 0) in any repository
ERROR:  While executing gem ... (Gem::RemoteFetcher::FetchError)
    SocketError: getaddrinfo: nodename nor servname provided, or not known 
(http://gems.rubyforge9999.org/latest_specs.4.8.gz)


----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=575&aid=29168&group_id=126
_______________________________________________
Rubygems-developers mailing list
http://rubyforge.org/projects/rubygems
Rubygems-developers@rubyforge.org
http://rubyforge.org/mailman/listinfo/rubygems-developers

Reply via email to