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

Handle timeouts more gracefully #20

Open
waldoj opened this issue Apr 27, 2014 · 0 comments
Open

Handle timeouts more gracefully #20

waldoj opened this issue Apr 27, 2014 · 0 comments
Labels

Comments

@waldoj
Copy link
Member

waldoj commented Apr 27, 2014

This just happened:

Honest Reform PAC reports retrieved.
House Democratic Caucus reports retrieved.
House Republican Campaign Committee reports retrieved.
Operation timed out after 5001 milliseconds with 0 bytes received
830 committees
10th District Republican Congressional Committee: PP-12-00458 saved to committees/PP-12-00458.json
11th Congressional District Democratic Committee: PP-12-00366 saved to committees/PP-12-00366.json

It looks like the timeout was cause to abandon the entire process of fetching the list of reports, causing the parser to move onto fetching individual reports. The result was it stopped at "House Republican Campaign Committee," when there were hundreds more reports remaining (they're retrieved alphabetically).

I suspect that we need to have cURL retry after a failure or, if not that, just move onto the next committee.

@waldoj waldoj added the bug label Apr 27, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant