0
votes

I was trying to install the blogger plugin for vim .

According to the instructions , after installation and configuration, I should be able to write something like this :

e blogger:list

and I will see the list of the blog posts I have published. However I get the following error :

/usr/lib/ruby/1.8/net/http.rb:560:in initialize': Connection refused - connect(2) (Errno::ECONNREFUSED)
  from /usr/lib/ruby/1.8/net/http.rb:560:inopen'
  from /usr/lib/ruby/1.8/net/http.rb:560:in connect'
  from /usr/lib/ruby/1.8/timeout.rb:53:intimeout'
  from /usr/lib/ruby/1.8/timeout.rb:101:in timeout'
  from /usr/lib/ruby/1.8/net/http.rb:560:inconnect'
  from /usr/lib/ruby/1.8/net/http.rb:553:in do_start'
  from /usr/lib/ruby/1.8/net/http.rb:542:instart'
  from /usr/lib/ruby/1.8/net/http.rb:379:in get_response'
  from /usr/lib/ruby/1.8/net/http.rb:356:inget'
  from /home/messi/.vim/autoload/metarw/blogger.rb:217:in __pagen
  from /home/messi/.vim/autoload/metarw/blogger.rb:130:inlist'
  from /home/messi/.vim/autoload/metarw/blogger.rb:329

I am behind an HTTP proxy. So I am guessing that is why I am getting these errors. I don't want to have to change the ruby scripts to make them work with the proxy settings. I tried setting environment variable HTTP_PROXY to the correct value to get it to work, but to no avail.

1

1 Answers

1
votes

That SW does not seem to contain code for dealing with proxies. I fear you have to change blogger.rb.

See ruby-doc.org, you have to replace Net::HTTP.get by Net::HTTP::Proxy(proxy_addr, proxy_port).get and so on. Maybe it is possible to achieve this centrally by some monkey-patching.