Skip to content

Handle timeouts more gracefully #20

@waldoj

Description

@waldoj

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions