Forum: Ruby gmailer library problem

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
56bd55778571ad185109cab84588c92f?d=identicon&s=25 Bob Brander (Guest)
on 2006-05-26 04:43
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...
E51d56251ec4affafe85ee9367228965?d=identicon&s=25 Park Heesob (Guest)
on 2006-05-26 05:29
(Received via mailing list)
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 Heesob
56bd55778571ad185109cab84588c92f?d=identicon&s=25 Guest (Guest)
on 2006-05-26 19:49
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 Heesob 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 Heesob
This topic is locked and can not be replied to.