eXamadeus/godaddypy

requests.exceptions.SSLError: HTTPSConnectionPool(host='api.godaddy.com', port=443): Max retries exceeded with url

gaurav8053 opened this issue · 2 comments

We are using godaddypy lib to manage our godaddy records.
We are running api's multiple times as part of our CI\CD pipeline and we got following error on one of instance, can you please help us analyze and fix same.

I have gone through multiple forums and found one issue logged with requests lib for similar error.
psf/requests#4256
But since we are not directly invoking requests , I am not sure how to tackle this.
We are invoking this API's from Docker container running inside Ubuntu Host
Versions used.
GoDaddyPy==2.2.5
requests==2.18.4

get_record("A",recordname,domainname)

return self.godaddy_client.get_records(domainname, recordtype, name=recordname)
[20:40:08] File "/usr/local/lib/python2.7/dist-packages/godaddypy/client.py", line 180, in get_records
[20:40:08] data = self._get_json_from_response(url)
[20:40:08] File "/usr/local/lib/python2.7/dist-packages/godaddypy/client.py", line 56, in _get_json_from_response
[20:40:08] return self._request_submit(requests.get, url=url, json=json, **kwargs).json()
[20:40:08] File "/usr/local/lib/python2.7/dist-packages/godaddypy/client.py", line 80, in _request_submit
[20:40:08] resp = func(headers=self._get_headers(), **kwargs)
[20:40:08] File "/usr/local/lib/python2.7/dist-packages/requests/api.py", line 72, in get
[20:40:08] return request('get', url, params=params, **kwargs)
[20:40:08] File "/usr/local/lib/python2.7/dist-packages/requests/api.py", line 58, in request
[20:40:08] return session.request(method=method, url=url, **kwargs)
[20:40:08] File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 508, in request
[20:40:08] resp = self.send(prep, **send_kwargs)
[20:40:08] File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 618, in send
[20:40:08] r = adapter.send(request, **kwargs)
[20:40:08] File "/usr/local/lib/python2.7/dist-packages/requests/adapters.py", line 506, in send
[20:40:08] raise SSLError(e, request=request)
[20:40:08]requests.exceptions.SSLError: HTTPSConnectionPool(host='api.godaddy.com', port=443): Max retries exceeded with url: /v1/domains//records/A/ (Caused by SSLError(SSLError("bad handshake: SysCallError(104, 'ECONNRESET')",),))

This is interesting. In the other issue you linked, it apparently was caused by using Sessions with the requests library incorrectly. Thus far, GoDaddyPy has not used request sessions yet (even though it probably should for performance reasons).

I think this may be coming from a configuration problem with the instance you are running on. Are there any reproduction steps you can give to get this issue to happen again?

Closing issue due to inactivity.