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

Retry Twitter list requests 10 times #9

Merged
merged 1 commit into from
Aug 24, 2017
Merged

Conversation

chrismytton
Copy link
Contributor

To try and deal with Twitter sometimes returning a 404 error for list
pages this adds the Faraday "retry" middleware to the Twitter middleware
stack. This is configured to check for a Twitter::Error::NotFound error
and retry the request up to 10 times.

Part of everypolitician/everypolitician#610

To try and deal with Twitter sometimes returning a 404 error for list
pages this adds the Faraday "retry" middleware to the Twitter middleware
stack. This is configured to check for a Twitter::Error::NotFound error
and retry the request up to 10 times.
@chrismytton
Copy link
Contributor Author

Have tried this in a couple of scrapers and it seems to be having the desired effect! I'm going to merge this and try updating a few scraper to see how things go.

@chrismytton chrismytton merged commit 90832b6 into master Aug 24, 2017
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.

None yet

1 participant