[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Setting the proxy address

Javin Yeo

4/9/2007 2:20:00 AM

Hi guys,

I have been getting the following errors when accessing the admin page
which i think is related to proxy as my office is behide a proxy server.
when i disabled the rss feed codes on tickets_controller.rb, it managed
show the admin login page. So how do I set the proxy server? I looked at
net/http.rb but to no avail to how it works :(

Thks in advance guys!
any help is greatly appreciated!


Errno::EBADF in Admin/ticketsController#list_pending
Bad file descriptor - connect(2)
RAILS_ROOT: ./script/../config/..

Application Trace | Framework Trace | Full Trace
c:/Ruby/lib/ruby/1.8/net/http.rb:560:in `initialize'
c:/Ruby/lib/ruby/1.8/net/http.rb:560:in `open'
c:/Ruby/lib/ruby/1.8/net/http.rb:560:in `connect'
c:/Ruby/lib/ruby/1.8/timeout.rb:48:in `timeout'
c:/Ruby/lib/ruby/1.8/timeout.rb:76:in `timeout'
c:/Ruby/lib/ruby/1.8/net/http.rb:560:in `connect'
c:/Ruby/lib/ruby/1.8/net/http.rb:553:in `do_start'
c:/Ruby/lib/ruby/1.8/net/http.rb:542:in `start'
c:/Ruby/lib/ruby/1.8/net/http.rb:1032:in `request'
c:/Ruby/lib/ruby/1.8/net/http.rb:769:in `get'
c:/Ruby/lib/ruby/gems/1.8/gems/feedtools-0.2.26/lib/feed_tools/helpers/retrieval_helper.rb:136:in
`send'
c:/Ruby/lib/ruby/gems/1.8/gems/feedtools-0.2.26/lib/feed_tools/helpers/retrieval_helper.rb:136:in
`http_request'
c:/Ruby/lib/ruby/gems/1.8/gems/feedtools-0.2.26/lib/feed_tools/helpers/retrieval_helper.rb:222:in
`http_get'
c:/Ruby/lib/ruby/gems/1.8/gems/feedtools-0.2.26/lib/feed_tools/feed.rb:238:in
`load_remote_feed!'
c:/Ruby/lib/ruby/gems/1.8/gems/feedtools-0.2.26/lib/feed_tools/feed.rb:125:in
`update!'
c:/Ruby/lib/ruby/gems/1.8/gems/feedtools-0.2.26/lib/feed_tools/feed.rb:80:in
`open'
#{RAILS_ROOT}/app/controllers/admin/tickets_controller.rb:158:in
`load_blog_feed'

--
Posted via http://www.ruby-....

1 Answer

Leslie Viljoen

4/9/2007 9:28:00 AM

0

On 4/9/07, Javin Yeo <airjav@gmail.com> wrote:
> Hi guys,
>
> I have been getting the following errors when accessing the admin page
> which i think is related to proxy as my office is behide a proxy server.
> when i disabled the rss feed codes on tickets_controller.rb, it managed
> show the admin login page. So how do I set the proxy server? I looked at
> net/http.rb but to no avail to how it works :(
>
> Thks in advance guys!
> any help is greatly appreciated!
>
>
> Errno::EBADF in Admin/ticketsController#list_pending
> Bad file descriptor - connect(2)
> RAILS_ROOT: ./script/../config/..

Might be a windows issue. Google for "ruby rails bad file descriptor".
Some hits:

http://thefigtrees.net/lee/blog/2005/12/ruby_on_rails_activesuppo...
http://www.ruby-forum.com/to...