forked from googleapis/google-api-python-client
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: discovery supports retries (googleapis#967)
Adding ability for discovery to retry on eligible http errors and connection problems with randomized exponential backoff. Also: * DRYing discovery tests to avoid warnings when reading test data. * Updating .gitignore Fixes: googleapis#848
- Loading branch information
Dmitry Frenkel
authored
Jul 15, 2020
1 parent
63f97f3
commit f3348f9
Showing
7 changed files
with
186 additions
and
51 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,3 +11,7 @@ dist/ | |
.coverage | ||
coverage.xml | ||
nosetests.xml | ||
|
||
# IDE files | ||
.idea | ||
.vscode |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"error": { | ||
"errors": [ | ||
{ | ||
"domain": "global", | ||
"reason": "internalError", | ||
"message": "We encountered an internal error. Please try again using truncated exponential backoff." | ||
} | ||
], | ||
"code": 500, | ||
"message": "Internal Server Error" | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"error": { | ||
"errors": [ | ||
{ | ||
"domain": "global", | ||
"reason": "backendError", | ||
"message": "We encountered an internal error. Please try again using truncated exponential backoff." | ||
} | ||
], | ||
"code": 503, | ||
"message": "Service Unavailable" | ||
} | ||
} |
Oops, something went wrong.