Question

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')

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...