-
Notifications
You must be signed in to change notification settings - Fork 397
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TwythonError: HTTPSConnectionPool(host='api.twitter.com', port=443): Max retries exceeded #404
Comments
You're sending too many requests from the same IP address, causing api.twitter.com to refuse the connection. There really isn't much you can do except try in a few minutes after the error. |
No, i'm not. I'm sending one request per 4 hours. If i catch this error and retry 5seconds later it works just fine.. edit: where in my code do you see i'm making too many requests exactly? |
@bitnumus didn't mean to close this, sorry! And I don't see you making too many requests. Is the error still occurring? I could be twitter acting up? I just tested this and had no issues :( |
No its happening every time, at the moment i'm catching the error and retrying, it succeeds on retry. As a guess could it be related to keepalive? 2015-11-09 05:46:34,955 urllib3.connectionpool [DEBUG] :: Setting read timeout to None |
I also got this error if I run twython request from APScheduler. @bitnumus do you also use any scheduler or run twython in a thread? |
I just ran Twython for the first time and got this error. |
full trace:
2015-11-03 20:58:35,912 urllib3.connectionpool [DEBUG] :: Setting read timeout to None
Traceback (most recent call last):
File "file", line 29, in
twitter.update_status_with_media(media=photo, status=status)
File "file", line 130, in update_status_with_media
return self.post('statuses/update_with_media', params=params)
File "/usr/local/lib/python2.7/dist-packages/twython/api.py", line 269, in post
return self.request(endpoint, 'POST', params=params, version=version)
File "/usr/local/lib/python2.7/dist-packages/twython/api.py", line 259, in request
api_call=url)
File "/usr/local/lib/python2.7/dist-packages/twython/api.py", line 165, in request
raise TwythonError(str(e))
twython.exceptions.TwythonError: HTTPSConnectionPool(host='api.twitter.com', port=443): Max retries exceeded with url: /1.1/statuses/update
with_media.json (Caused by <class 'socket.error'>: [Errno 110] Connection timed out)
Code thats using the twython function:
http://pastebin.com/aPnrSdVy
The text was updated successfully, but these errors were encountered: