Forums

SSLError bad handshake 104

I am getting requests constantly and goes well but I get this error and break my app

requests.exceptions.SSLError: bad handshake: SysCallError(104, 'ECONNRESET')

This error comes from requests. I was wondering if there is any limit on requests you can make to a page. Normally it works well but sometimes i get this and breaks.

I check the url and it is fine. What could be?

Here the traceback:

Traceback (most recent call last):
File "/home/user/mysite/static/crontab/crontab_1.py", line 126, in <module>
    app.foo()
File "/home/user/mysite/folder/app.py", line 738, in foo()
     return json.loads(self.MELI.get(path).content)
File "/home/user/mysite/folder/mercadolibre/meli/meli.py", line 74, in get
    response = requests.get(uri, params=urlencode(params), headers=headers)
File "/usr/local/lib/python2.7/dist-packages/requests/api.py", line 71, in get
   return request('get', url, params=params, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/requests/api.py", line 57, in request
   return session.request(method=method, url=url, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 475, in request
   resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 585, in send
   r = adapter.send(request, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/requests/adapters.py", line 477, in send
   raise SSLError(e, request=request)
   requests.exceptions.SSLError: bad handshake: SysCallError(104, 'ECONNRESET')

We don't apply any limits, but it's possible that the site you're connecting to does...?

Just to check -- the site you're connecting to is on our whitelist, right?

It is on the whitelist. The site does not have a limit either-.. what else could be?

How frequently are you making requests?