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

Share this post

Link to post
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now