Skip to content

Commit

Permalink
Add error payload for IAM_PERMISSION_DENIED
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewheard committed Oct 18, 2024
1 parent 60d747e commit 0635447
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions mock-responses/unary-failure-iam-permission-denied.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"error": {
"code": 403,
"message": "Permission 'aiplatform.endpoints.predict' denied on resource '//aiplatform.googleapis.com/projects/test-project-id-1234/locations/us-central1/publishers/google/models/gemini-1.5-flash' (or it may not exist).",
"status": "PERMISSION_DENIED",
"details": [
{
"@type": "type.googleapis.com/google.rpc.ErrorInfo",
"reason": "IAM_PERMISSION_DENIED",
"domain": "aiplatform.googleapis.com",
"metadata": {
"permission": "aiplatform.endpoints.predict",
"resource": "projects/test-project-id-1234/locations/us-central1/publishers/google/models/gemini-1.5-flash"
}
}
]
}
}

0 comments on commit 0635447

Please sign in to comment.