[issue16361] HTTPS/TLS Problem in Python 3.3
Phil
report at bugs.python.org
Mon Oct 29 23:52:02 CET 2012
New submission from Phil:
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)
----------
components: Library (Lib)
files: demo.py
messages: 174158
nosy: pventura
priority: normal
severity: normal
status: open
title: HTTPS/TLS Problem in Python 3.3
type: behavior
versions: Python 3.3
Added file: http://bugs.python.org/file27785/demo.py
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16361>
_______________________________________
More information about the Python-bugs-list
mailing list