Problems with load $http_proxy

Bug #225687 reported by Guile
This bug report is a duplicate of:  Bug #94130: HTTPS over proxy fails. Edit Remove
4
Affects Status Importance Assigned to Milestone
RescueTime Linux Uploader
Incomplete
Undecided
Elliot Murphy

Bug Description

In rescuetime-linux-uploader-80. It seems that the variable $http_proxy is'nt loaded.
When the progran try to upload data, or test the login, in a network whit proxy it fails. (Uploading XX.upload.encoded.data ... Error uploading).

Revision history for this message
Guile (gcondeh) wrote :

Traceback (most recent call last):
URLError: <urlopen error (111, 'Connection refused')>
Connection is down. Pretending we succeeded in logging in.

Revision history for this message
wizzro (thomas-montfort) wrote :

It seems https support in urrlib2 in python 2.5 is broken : http://bugs.python.org/issue1424152

I have used the patch in the thread above. (download link in Files section, top of the page).
With Ubuntu 8.04 :
export http_proxy=http://wwwcache.insa-toulouse.fr:3128;export https_proxy=http://wwwcache.insa-toulouse.fr:3128;
cd
wget http://bugs.python.org/file9753/http-tunnel-urllib
cd /usr/lib/python2.5
patch -p1 < ~/http-tunnel-urllib
cd ~/tmp/rescuetime-linux-uploader-80
vi RescueTimeUploader/uploader.py
Comment line 31 to 35. (if os.getenv....)
sudo python setup.py build
sudo python setup.py install
rescuetime_linux_uploader

Hope this helps...

Revision history for this message
Guile (gcondeh) wrote :

Thank you for your help. It works fine.

Revision history for this message
Elliot Murphy (statik) wrote :

Hi Guile, Wizzro,

Should the proxy code in rescuetime-linux-uploader be removed?

Changed in rescuetime-linux-uploader:
assignee: nobody → statik
status: New → Incomplete
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.