i ran script (https://github.com/mikehking/highrise-analysis/blob/master/highrise-analysis.py) calculate usage user highrise crm system (www.highrisehq.com). recently, script has been returning error; i'm not sure telling me -- can should looking fix this?
thanks
traceback (most recent call last): file "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 557, in urlopen body=body, headers=headers) file "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 382, in _make_request conn.request(method, url, **httplib_request_kw) file "/usr/lib/python3.4/http/client.py", line 1065, in request self._send_request(method, url, body, headers) file "/usr/lib/python3.4/http/client.py", line 1103, in _send_request self.endheaders(body) file "/usr/lib/python3.4/http/client.py", line 1061, in endheaders self._send_output(message_body) file "/usr/lib/python3.4/http/client.py", line 906, in _send_output self.send(msg) file "/usr/lib/python3.4/http/client.py", line 841, in send self.connect() file "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 133, in connect ssl_version=resolved_ssl_version) file "/usr/lib/python3/dist-packages/urllib3/util.py", line 619, in ssl_wrap_socket return context.wrap_socket(sock, server_hostname=server_hostname) file "/usr/lib/python3.4/ssl.py", line 364, in wrap_socket _context=self) file "/usr/lib/python3.4/ssl.py", line 578, in __init__ self.do_handshake() file "/usr/lib/python3.4/ssl.py", line 805, in do_handshake self._sslobj.do_handshake() ssl.ssleoferror: eof occurred in violation of protocol (_ssl.c:598) during handling of above exception, exception occurred: traceback (most recent call last): file "/usr/lib/python3/dist-packages/requests/adapters.py", line 330, in send timeout=timeout file "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 590, in urlopen raise sslerror(e) urllib3.exceptions.sslerror: eof occurred in violation of protocol (_ssl.c:598) during handling of above exception, exception occurred: traceback (most recent call last): file "/home/mikehking/workspace/highrise-analysis/highrise-analysis.py", line 188, in <module> create_notes_backup(prod_api_key, prod_api_usr, 'highrise-production-notes.bak', 'highrise-production-users.bak', 'highrise-production-people.bak', 'highrise-production-cases.bak', trailing_days = 365) # production environment file "/home/mikehking/workspace/highrise-analysis/highrise-analysis.py", line 71, in create_notes_backup tmp_notes = high.get_person_notes(person.highrise_id) file "/usr/local/lib/python3.4/dist-packages/highton/highton.py", line 436, in get_person_notes return self._get_notes(subject_id, 'people') file "/usr/local/lib/python3.4/dist-packages/highton/highton.py", line 433, in _get_notes highrise_type, subject_id)), note) file "/usr/local/lib/python3.4/dist-packages/highton/highton.py", line 115, in _get_data content = self._get_request(endpoint, params).content file "/usr/local/lib/python3.4/dist-packages/highton/highton.py", line 44, in _get_request params=params, file "/usr/lib/python3/dist-packages/requests/api.py", line 55, in return request('get', url, **kwargs) file "/usr/lib/python3/dist-packages/requests/api.py", line 44, in request return session.request(method=method, url=url, **kwargs) file "/usr/lib/python3/dist-packages/requests/sessions.py", line 455, in request resp = self.send(prep, **send_kwargs) file "/usr/lib/python3/dist-packages/requests/sessions.py", line 558, in send r = adapter.send(request, **kwargs) file "/usr/lib/python3/dist-packages/requests/adapters.py", line 385, in send raise sslerror(e) requests.exceptions.sslerror: eof occurred in violation of protocol (_ssl.c:598)
the last traceback suggests script trying create_notes_backup
, encounters error when communicating highrise api.
the error message:
ssl.ssleoferror: eof occurred in violation of protocol (_ssl.c:598)
is consistent server accepts connection closes or prematurely. might firewall issue.
if have openssl installed on machine, can try check connection:
openssl s_client -crlf -connect user.highrisehq.com:443
where user
highrise user. should long tls handshake trace full of technical details, ending ---
, waits input.
Comments
Post a Comment