Skip to content

Commit cf533e8

Browse files
Update AIP-193 example with actionable error details (#1252)
* Make 0193.md example more actionable Update example in AIP 193 with a more actionable error code and error details * added metadata.zonesWithCapacity and removed whitespace between values
1 parent 9d73091 commit cf533e8

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

aip/general/0193.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,18 +47,19 @@ following:
4747
"details": [
4848
{
4949
"@type": "type.googleapis.com/google.rpc.ErrorInfo",
50-
"reason": "STOCKOUT",
50+
"reason": "RESOURCE_AVAILABILITY",
5151
"domain": "compute.googleapis.com",
5252
"metadata": {
5353
"zone": "us-east1-a",
5454
"vmType": "e2-medium",
55-
"attachment": "local-ssd=3,nvidia-t4=2"
55+
"attachment": "local-ssd=3,nvidia-t4=2",
56+
"zonesWithCapacity": "us-central1-f,us-central1-c"
5657
}
5758
},
5859
{
5960
"@type": "type.googleapis.com/google.rpc.LocalizedMessage",
6061
"locale": "en-US",
61-
"message": "A e2-medium with local-ssd=3,nvidia-t4=2 is currently unavailable in the us-east1-a zone.\nCapacity changes frequently, so try your request in a different zone, with a different VM hardware configuration, or at a later time. For more information, see troubleshooting documentation."
62+
"message": "An <e2-medium> VM instance with <local-ssd=3,nvidia-t4=2> is currently unavailable in the <us-east1-a> zone.\n Consider trying your request in the <us-central1-f,us-central1-c> zone(s), which currently has/have capacity to accommodate your request.\n Alternatively, you can try your request again with a different VM hardware configuration or at a later time. For more information, see the troubleshooting documentation."
6263
}
6364
]
6465
}
@@ -264,6 +265,7 @@ message, which would be a backwards incompatible change.
264265

265266
## Changelog
266267

268+
- **2023-10-24**: Updated the example error with more actionable details.
267269
- **2023-05-17**: Change the recommended language for `Status.message`
268270
to be the service's native language rather than English.
269271
- **2023-05-17**: Specify requirements for changing error messages.

0 commit comments

Comments
 (0)