# Gmailer library problem

**URL:** <https://www.ruby-forum.com/t/gmailer-library-problem/61691>\
**Category:** Ruby\
**Created:** [May 26, 2006, 4:43am UTC](https://www.ruby-forum.com/t/gmailer-library-problem/61691 "2006-05-26T04:43:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bob\_Brander](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/c0e974/32.png) [@Bob\_Brander](https://www.ruby-forum.com/u/Bob_Brander)\
**Post date:** [May 26, 2006, 4:43am UTC](https://www.ruby-forum.com/t/gmailer-library-problem/61691/1 "2006-05-26T04:43:38Z")

</div>

I’ve been using the gmail library in ruby to connect to gmail for some  
time, but now I get the following error:  
/usr/lib/ruby/1.8/net/http.rb:1556:in `read_status_line': wrong status line: "<HTML><HEAD><meta http-equiv=\"content-type\" content=\"text/html;charset=utf-8\">" (Net::HTTPBadResponse) from /usr/lib/ruby/1.8/net/http.rb:1538:in`read\_new’  
from /usr/lib/ruby/1.8/net/http.rb:833:in `request' from /usr/lib/ruby/1.8/net/http.rb:615:in`get’  
from ./gmailer.rb:196:in `connect_no_cookie' from ./gmailer.rb:195:in`start’  
from ./gmailer.rb:195:in `connect_no_cookie' from ./gmailer.rb:123:in`initialize’  
from ./gmailer.rb:1767:in `new' from ./gmailer.rb:1767:in`connect’

Does anyone know what the problem is? I didn’t change any of my code, so  
I don’t know why it’s doing this now. Also, I tried connecting (using  
the same code, but just different username and password) to a different  
gmail account I have, and that works fine…

---

<div class="post-metadata">

**Author:** ![Bob\_Brander](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/c0e974/32.png) [@Bob\_Brander](https://www.ruby-forum.com/u/Bob_Brander)\
**Post date:** [May 26, 2006, 5:29am UTC](https://www.ruby-forum.com/t/gmailer-library-problem/61691/2 "2006-05-26T05:29:16Z")

</div>

Hi,

> content=“text/html;charset=utf-8”\>" (Net::HTTPBadResponse)  
> Does anyone know what the problem is? I didn’t change any of my code, so  
> I don’t know why it’s doing this now. Also, I tried connecting (using  
> the same code, but just different username and password) to a different  
> gmail account I have, and that works fine…

What’s your ruby version and gmailer version?

I recommend you to use 1.8.4-17 rc 2 installer and gmailer 0.1.1

Regards,

Park H.

---

<div class="post-metadata">

**Author:** ![Bob\_Brander](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/c0e974/32.png) [@Bob\_Brander](https://www.ruby-forum.com/u/Bob_Brander)\
**Post date:** [May 26, 2006, 7:49pm UTC](https://www.ruby-forum.com/t/gmailer-library-problem/61691/3 "2006-05-26T19:49:43Z")

</div>

Hi. I have 1.8.4 installed, but I get the same error. (What is 1.8.4-17  
rc 2 installer? Do I need to have that also? I’m a noob with all  
this…)

Thanks

Park H. wrote:

> Hi,
> 
> > content=“text/html;charset=utf-8”\>" (Net::HTTPBadResponse)  
> > Does anyone know what the problem is? I didn’t change any of my code, so  
> > I don’t know why it’s doing this now. Also, I tried connecting (using  
> > the same code, but just different username and password) to a different  
> > gmail account I have, and that works fine…
> 
> What’s your ruby version and gmailer version?
> 
> I recommend you to use 1.8.4-17 rc 2 installer and gmailer 0.1.1
> 
> Regards,
> 
> Park H.
