-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dispatch network fail actions for more failed fetches.
Closes #775. Until now, we only dispatched `..._NETWORK_FAIL` actions when a fetch failed and the browser deemed it a network error of a certain kind, per the `message` property of the thrown error. However, we shouldn't assume that all browsers will set the error's `message` property in the same way, and we should recover robustly when we are unable to parse JSON from the response body (e.g. due to an error at the level of a reverse proxy server). By being too picky about what the thrown error looked like, we were failing to clean up after certain kinds of non-HTTP/network error, which was usually asymptomatic, but in the case of ballot manifest and CVR export uploads, could lead to a "stuck" spinner state. These changes fix that.
- Loading branch information
Showing
4 changed files
with
6 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters