-
Notifications
You must be signed in to change notification settings - Fork 35
Open
Description
About 80% of the time I receive the error:
Traceback (most recent call last):
File "/Users/F/Desktop/delete.py", line 22, in <module>
tracking = ups.tracking_info('1Z51062E6893884735')
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/ClassicUPS/ups.py", line 71, in tracking_info
return TrackingInfo(self, *args, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/ClassicUPS/ups.py", line 108, in __init__
self.result = ups_conn._transmit_request('track', tracking_request)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/ClassicUPS/ups.py", line 65, in _transmit_request
resp = urllib.urlopen(url, xml.encode('ascii', 'xmlcharrefreplace'))\
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib.py", line 89, in urlopen
return opener.open(url, data)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib.py", line 215, in open
return getattr(self, name)(url, data)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib.py", line 443, in open_https
h.endheaders(data)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 1038, in endheaders
self._send_output(message_body)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 882, in _send_output
self.send(msg)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 844, in send
self.connect()
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 1263, in connect
server_hostname=server_hostname)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ssl.py", line 363, in wrap_socket
_context=self)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ssl.py", line 611, in __init__
self.do_handshake()
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ssl.py", line 840, in do_handshake
self._sslobj.do_handshake()
IOError: [Errno socket error] EOF occurred in violation of protocol (_ssl.c:661)
Do you know how to fix this? Thanks!
Metadata
Metadata
Assignees
Labels
No labels