From: Zhoran Tvalve Date: 2008-12-11T01:13:31+09:00 Subject: A bug in c:\InstantRails\ruby\lib\ruby\1.8\net\http.rb? I can not make working a line of code: http = Net::HTTP::Proxy('192.168.1.32', 3128, 'user', 'password').new('http://www.yandex.ru',80) I got: stack level too deep RAILS_ROOT: C:/INSTAN~1/rails_apps/myapp/config/.. Application Trace | Framework Trace | Full Trace C:/INSTAN~1/ruby/lib/ruby/1.8/net/http.rb:451:in `newobj' C:/INSTAN~1/ruby/lib/ruby/1.8/net/http.rb:451:in `newobj' C:/INSTAN~1/ruby/lib/ruby/1.8/net/http.rb:451:in `new' #{RAILS_ROOT}/lib/bot.rb:23:in `open_url' #{RAILS_ROOT}/app/controllers/urlas_controller.rb:42:in `get_content' 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 Any ideas appreciated. -- Posted via http://www.ruby-forum.com/.