New submission from mrDoctorWho0 .: Trying to use POST-request to https://vk.com and sometimes library raise an error. File "library/vkApi.py", line 31, in post response = self.Opener.open(request) File "/usr/lib/python2.7/urllib2.py", line 404, in open response = self._open(req, data) File "/usr/lib/python2.7/urllib2.py", line 422, in _open '_open', req) File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain result = func(*args) File "/usr/lib/python2.7/urllib2.py", line 1222, in https_open return self.do_open(httplib.HTTPSConnection, req) File "/usr/lib/python2.7/urllib2.py", line 1184, in do_open raise URLError(err) URLError: <urlopen error _ssl.c:489: The handshake operation timed out>
This exception appears randomly, connection is ok 100%. I tried it on different machines with python 2.7.4 and 2.7.3. ---------- components: Library (Lib) files: code.py messages: 198141 nosy: mrDoctorWho0.. priority: normal severity: normal status: open title: Sometimes urllib2 raises URLError when trying POST with httpS type: behavior versions: Python 2.7 Added file: http://bugs.python.org/file31825/code.py _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue19057> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com