Skip to content
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

reddit sometimes responds with "429 Too Many Requests" seemingly randomly #317

Merged
merged 2 commits into from
Jul 7, 2014
Merged

reddit sometimes responds with "429 Too Many Requests" seemingly randomly #317

merged 2 commits into from
Jul 7, 2014

Conversation

davidhubbard
Copy link
Contributor

http://stackoverflow.com/questions/13213048/urllib2-http-error-429 fixes the problem

Basically reddit rate-limits their API based on the User-Agent string. Instead of sticking with the default (urllib User-Agent) this pull request sets User-Agent to 'python-social-auth-' + _ _ version _ _ so requests shouldn't hit the rate limit without knowing it

override request so User-Agent does not get lumped in with all urllib hits on reddit (results in "429 Too Many Requests")

http://stackoverflow.com/questions/13213048/urllib2-http-error-429
@davidhubbard
Copy link
Contributor Author

fixing that Travis CI error...

@omab omab merged commit d8dade7 into omab:master Jul 7, 2014
@omab
Copy link
Owner

omab commented Jul 7, 2014

@davidhubbard, I've changed the code a bit to make it available for all backends.

Thanks for your work on it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants