scorer.py icon indicating copy to clipboard operation
scorer.py copied to clipboard

requests.exceptions.ConnectionError

Open surajssd opened this issue 9 years ago • 4 comments

Traceback (most recent call last): File "scorer.py", line 44, in r = requests.get(url) File "/usr/lib/python2.7/dist-packages/requests/api.py", line 55, in get return request('get', url, *_kwargs) File "/usr/lib/python2.7/dist-packages/requests/api.py", line 44, in request return session.request(method=method, url=url, *_kwargs) File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 455, in request resp = self.send(prep, *_send_kwargs) File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 558, in send r = adapter.send(request, *_kwargs) File "/usr/lib/python2.7/dist-packages/requests/adapters.py", line 378, in send raise ConnectionError(e) requests.exceptions.ConnectionError: HTTPConnectionPool(host='static.cricinfo.com', port=80): Max retries exceeded with url: /rss/livescores.xml (Caused by <class 'socket.gaierror'>: [Errno -2] Name or service not known)

surajssd avatar Mar 26 '15 11:03 surajssd

I had this same error, Will need to look into it. Thanks for reporting. Let's mark this a low priority bug for now.

anubhavcodes avatar Mar 26 '15 12:03 anubhavcodes

Could not find what caused it and also tried to recreate it but didn't come up :confused:

surajssd avatar Mar 26 '15 13:03 surajssd

We need to handle it in the code then. And make sure the code does not break when this exception is raised! :)

anubhavcodes avatar Mar 26 '15 13:03 anubhavcodes

@neo1691 PR #54 addresses this issue if the code is not able to reach or resolve the given URL. I believe this code has already been merged into the master. @neo1691 if #54 addressed this issue, you can close it.

harsham4026 avatar Sep 15 '18 16:09 harsham4026