Connection reset by peer using python urllib2.urlopen()

Siqi
Siqi Member Posts: 1

Hi Team,

We have a "Connection reset by peer" when using python2 urllib2 to send message to solace. This error is resolved if we restart/retry the job. Any ideas what might be causing this?


f = urllib2.urlopen(req , timeout = 7200000, context = ctx)

File "../urllib2.py", line 154, in urlopen

return opener.open(url, data, timeout)

File "../thirdparty/python/python2/lib/python2.7/urllib2.py", line 429, in open

response = self._open(req, data)

File "../thirdparty/python/python2/lib/python2.7/urllib2.py", line 447, in _open

\'_open\', req)

File "../urllib2.py", line 407, in _call_chain\n result = func(*args)\n

File "../thirdparty/python/python2/lib/python2.7/urllib2.py", line 1241, in https_open\n context=self._context)\n

File "../thirdparty/python/python2/lib/python2.7/urllib2.py", line 1198, in do_open\n

raise URLError(err)\n

URLError: <urlopen error [Errno 104] Connection reset by peer>\n',)