-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: improve aiohttp client error messages (#1201)
By default, aiohttp on bad requests will discard response body and output generic error message in response, Bad Request, Forbidden, etc. The Cloud SQL Admin APIs response body contains more detailed error messages. We need to raise these to the end user for them to be able to resolve common config issues on their own. This PR implements a more robust solution, copying the actual Cloud SQL Admin API response body's error message to the end user.
- Loading branch information
1 parent
968b6b2
commit 11f9fe9
Showing
4 changed files
with
156 additions
and
72 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