-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not retry in case of an nginx timeout error (#35)
When the client request timeouts, the nginx returns an HTML error page. We should not retry when that happens (which would fail the respone.json() call as it is not a json). This PR pulls the parsing of the response body out of the retry logic.
- Loading branch information
Showing
1 changed file
with
13 additions
and
11 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