Problems with Net:HTTP class

B

Bontina Chen

I'm testing the http module in console.
BUt I got the following error.
Anyone knows why?
SystemStackError: stack level too deep
from C:/InstantRails/ruby/lib/ruby/1.8/net/http.rb:451:in
`newobj'
from C:/InstantRails/ruby/lib/ruby/1.8/net/http.rb:451:in
`newobj'
from C:/InstantRails/ruby/lib/ruby/1.8/net\http.rb:451:in `new'
from C:/InstantRails/ruby/lib/ruby/1.8/net\http.rb:374:in
`get_response'

from C:/InstantRails/ruby/lib/ruby/1.8/net\http.rb:337:in
`get_print'
from (irb):2

THX
 
J

Justin Collins

Bontina said:
I'm testing the http module in console.
BUt I got the following error.
Anyone knows why?


SystemStackError: stack level too deep
from C:/InstantRails/ruby/lib/ruby/1.8/net/http.rb:451:in
`newobj'
from C:/InstantRails/ruby/lib/ruby/1.8/net/http.rb:451:in
`newobj'
from C:/InstantRails/ruby/lib/ruby/1.8/net\http.rb:451:in `new'
from C:/InstantRails/ruby/lib/ruby/1.8/net\http.rb:374:in
`get_response'

from C:/InstantRails/ruby/lib/ruby/1.8/net\http.rb:337:in
`get_print'
from (irb):2

THX

Some kind of recursive loop, it looks like. The code worked for me, in
Ruby 1.8.5, but I'm not using Instant Rails - maybe there's an issue there?

-Justin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,681
Members
48,796
Latest member
Greg L.

Latest Threads

Top