python-launchpad-bug does not support proxy server
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-launchpad-bugs |
Incomplete
|
Undecided
|
Unassigned | ||
python-launchpad-bugs (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: python-
bobby@ubuntu:~$ export http_proxy="http://
bobby@ubuntu:~$ python
>>> import launchpadbugs.
>>> from launchpadbugs.
>>> BugList = Connector.
>>> bl = BugList("https:/
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/
filter=
File "/usr/lib/
all_tasks, start_bugs, BugPage)
File "/usr/lib/
self.
File "/usr/lib/
(bugs,url) = self._fetch(url)
File "/usr/lib/
class_
File "/usr/lib/
x, following_page = class_helper.
File "/usr/lib/
lp_content = connection.get(url)
File "/usr/lib/
self.__baseurl = self._get_baseurl()
File "/usr/lib/
a = self.__
File "/usr/lib/
response = self._open(req, data)
File "/usr/lib/
'_open', req)
File "/usr/lib/
result = func(*args)
File "/usr/lib/
return self.do_
File "/usr/lib/
raise URLError(err)
urllib2.URLError: <urlopen error (111, 'Connection refused')>
>>>
bobby@ubuntu:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_
DISTRIB_
DISTRIB_
bobby@ubuntu:~$
bobby@ubuntu:~$ dpkg -l python-
Desired=
| Status=
|/ Err?=(none)
||/ Name Version Description
+++-===
ii python-
Changed in python-launchpad-bugs: | |
status: | New → Confirmed |
status: | New → Confirmed |
Changed in python-launchpad-bugs: | |
status: | Confirmed → New |
I've done some testing of this and the test case, specifically using 'export http_proxy', doesn't seem to do anything. You could use 'export http_proxy= localhost: 1245' and because you are behind a proxy server you would receive the same results. While for me it just works. We need to the right way to set the proxy for python or urllib2.