In http.rb at line 451 the method HTTP.new(bla, bla,…) is called which
calls itself recurcively via its alias newobj. I’m new to ruby, so I can
not figure out how to fix that. Have anybody met that issue already?
PS
in
C:\instantRails\ruby\lib\ruby\site_ruby\1.8\rubygems\remote_fetcher.rb I
found the same way of using Net::HTTP::Proxy
Net::HTTP::Proxy(@proxy_uri.host, @proxy_uri.port,
unescape(@proxy_uri.user), unescape(@proxy_uri.password)).new(host,
port)
but executing gem list -r --debug results in the different error w/o
stack become too deep. I go ‘HTTP Responce 407’, despite I set
http_proxy env var to ‘http://user:password@proxy-address:proxy-port’.
That’s quite strange :[
Those two files use the same http.rb classes but behave differently
Thank you for your advice. I tried your code, but got again stack level
too deep. I think it’s because we use differrent lib versions.
Could you attach zipped ruby\lib\ruby\1.8 folder? It would help me a
lot.
not sure that’ll help that much as I’m just using the standard latest
download of 1.8.6 from the ruby download pages.
I’ve often found that the best way to actually find out what’s going
on when you get wierd errors/exceptions is to step through your source
using ruby-debug as then you can find out exactly what’s going on with
a bit of diligence find out why.
If you’ve not used the debugger before, I found the following
screencasts useful:
Thank you for your advice. I tried your code, but got again stack level
too deep. I think it’s because we use differrent lib versions.
Could you attach zipped ruby\lib\ruby\1.8 folder? It would help me a
lot.
not sure that’ll help that much as I’m just using the standard latest
download of 1.8.6 from the ruby download pages.
I’ve often found that the best way to actually find out what’s going
on when you get wierd errors/exceptions is to step through your source
using ruby-debug as then you can find out exactly what’s going on with
a bit of diligence find out why.
If you’ve not used the debugger before, I found the following
screencasts useful:
Hi Rupert,
Thank you for links about rdebug, I found them very useful. When I ran
my code using rake it worked without any errors, but it still generates
the error message while get running from within Rails controller. But
I’m quite happy with running it with rake. So my question is closed.
Wish you good luck!
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.