GeezerVison is showing github.com — fix: add actionable errors for GCE long running operations by parthea · Pull Request #498 · googleapis/python-api-core
This repository was archived by the owner on Feb 23, 2026. It is now read-only.
Conversation
parthea
commented
May 19, 2023
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Fixes b/280938007
Googlers see go/surface-actionable-errors-lro-gce
When an error occurs during an extended operation when using the python compute client, currently users only receive the error code and the error message, which is not helpful.
google.api_core.exceptions.BadRequest: 400 BAD REQUEST
The proposed solution is to provide users with actionable error information, surfacing the errors field which contains actionable errors.
google.api_core.exceptions.BadRequest: 400 BAD REQUEST
INCOMPATIBLE_BACKEND_SERVICES: Validation failed for instance group 'projects/<REDACTED>/zones/us-central1-a/instanceGroups/my-instance-group-1': backend services 'projects/<REDACTED>/global/backendServices/my-backend-service-1' and 'projects/<REDACTED>global/backendServices/my-backend-service-2' point to the same instance group but the backends have incompatible balancing_mode. Values should be the same.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll add tests if go/surface-actionable-errors-lro-gce is approved.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
…b/284179390 is implemented
This was referenced May 30, 2025
Reviewers
dizcology
Awaiting requested review from dizcology
1 more reviewer
Reviewers whose approvals may not affect merge requirements
Uh oh!
There was an error while loading. Please reload this page.
Labels
size: m
Pull request size is medium.
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.