Message174158
I had converted some code for a scraper from 2.7.3 to 3.3.0 on Windows 7 and suddenly the code stopped working. Now the https fetch results in:
Traceback (most recent call last):
File "D:\Users\Phil\Desktop\demo.py", line 67, in <module>
page=getWebData()
File "D:\Users\Phil\Desktop\demo.py", line 59, in getWebData
response=urllib.request.urlopen(req, cadefault=False)
File "D:\Program Files\Python33\lib\urllib\request.py", line 160, in urlopen
return opener.open(url, data, timeout)
File "D:\Program Files\Python33\lib\urllib\request.py", line 473, in open
response = self._open(req, data)
File "D:\Program Files\Python33\lib\urllib\request.py", line 491, in _open
'_open', req)
File "D:\Program Files\Python33\lib\urllib\request.py", line 451, in _call_chain
result = func(*args)
File "D:\Program Files\Python33\lib\urllib\request.py", line 1287, in https_open
context=self._context, check_hostname=self._check_hostname)
File "D:\Program Files\Python33\lib\urllib\request.py", line 1255, in do_open
raise URLError(err)
urllib.error.URLError: <urlopen error [WinError 10054] An existing connection was forcibly closed by the remote host>
I have run Wireshark using Python 2.7.3 and Python 3.3.0 (see attached files) |
|
Date |
User |
Action |
Args |
2012-10-29 22:52:02 | pventura | set | recipients:
+ pventura |
2012-10-29 22:52:02 | pventura | set | messageid: <1351551122.11.0.0678496091034.issue16361@psf.upfronthosting.co.za> |
2012-10-29 22:52:02 | pventura | link | issue16361 messages |
2012-10-29 22:52:01 | pventura | create | |
|