-
Notifications
You must be signed in to change notification settings - Fork 179
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added quota exceeded exception (#93)
Co-authored-by: David Motsonashvili <[email protected]> Co-authored-by: Rodrigo Lazo <[email protected]>
- Loading branch information
1 parent
672f0a4
commit 47135cf
Showing
5 changed files
with
60 additions
and
8 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
31 changes: 31 additions & 0 deletions
31
common/src/test/resources/golden-files/unary/failure-quota-exceeded.json
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,31 @@ | ||
{ | ||
"error": { | ||
"code": 429, | ||
"message": "Quota exceeded for quota metric 'Generate Content API requests per minute' and limit 'GenerateContent request limit per minute for a region' of service 'generativelanguage.googleapis.com' for consumer 'project_number:348715329010'.", | ||
"status": "RESOURCE_EXHAUSTED", | ||
"details": [ | ||
{ | ||
"@type": "type.googleapis.com/google.rpc.ErrorInfo", | ||
"reason": "RATE_LIMIT_EXCEEDED", | ||
"domain": "googleapis.com", | ||
"metadata": { | ||
"service": "generativelanguage.googleapis.com", | ||
"consumer": "projects/348715329010", | ||
"quota_limit_value": "0", | ||
"quota_limit": "GenerateContentRequestsPerMinutePerProjectPerRegion", | ||
"quota_location": "us-east2", | ||
"quota_metric": "generativelanguage.googleapis.com/generate_content_requests" | ||
} | ||
}, | ||
{ | ||
"@type": "type.googleapis.com/google.rpc.Help", | ||
"links": [ | ||
{ | ||
"description": "Request a higher quota limit.", | ||
"url": "https://cloud.google.com/docs/quota#requesting_higher_quota" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} |
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