# Problem getting gems/listing gems. EINVAL

**URL:** <https://www.ruby-forum.com/t/problem-getting-gems-listing-gems-einval/64954>\
**Category:** Ruby\
**Created:** [August 15, 2006, 2:20pm UTC](https://www.ruby-forum.com/t/problem-getting-gems-listing-gems-einval/64954 "2006-08-15T14:20:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thaddeus\_L\_Olczyk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/b19c9b/32.png) [@Thaddeus\_L\_Olczyk](https://www.ruby-forum.com/u/Thaddeus_L_Olczyk)\
**Post date:** [August 15, 2006, 2:20pm UTC](https://www.ruby-forum.com/t/problem-getting-gems-listing-gems-einval/64954/1 "2006-08-15T14:20:54Z")

</div>

Environment:  
rubygems 0.9.0  
ruby 1.8.4  
OS NT 4 sp6

Problem:  
Upon trying to install a gem or list from either rubyforge or why’s  
site I recieve this error message  
Exception `Errno::EINVAL’ at  
I:/PROGRAMS/Scripting/ruby/lib/ruby/1.8/net/protocol.rb:176 - Invalid  
argument  
ERROR: While executing gem … (Errno::EINVAL)

Some Diagnostics:  
Examing code and a few well placed print statements I discover this  
exception is generated when the application first trys to write to the  
Socket. Connecting by hand and sending the same string returns in  
a 200 ie using “telnet [code.whytheluckystiff.net](http://code.whytheluckystiff.net) 80” then typing in  
the header returns a 200.

Thanks in advance.
