GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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

@parthea parthea commented May 19, 2023 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

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.

All reactions
@product-auto-label product-auto-label Bot added the size: s Pull request size is small. label May 19, 2023
@parthea
parthea force-pushed the add-actionable-errors-lro branch 2 times, most recently from 50b5a79 to 254e151 Compare May 19, 2023 17:04
@parthea
fix: add actionable errors for GCE long running operations
0e3f9bd
@parthea
parthea force-pushed the add-actionable-errors-lro branch from 254e151 to 0e3f9bd Compare May 19, 2023 18:44
parthea
parthea commented May 19, 2023
View reviewed changes

@parthea parthea left a comment

Copy link
Copy Markdown
Contributor Author

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.

All reactions
parthea added 6 commits June 1, 2023 12:54
@parthea
add unit test
0703fc8
@parthea
mypy
0e5ce89
@parthea
add notes that the workaround should be removed once proposal A from …
46dfd97
…b/284179390 is implemented
@parthea
fix typo
cb9539e
@parthea
Merge branch 'main' into add-actionable-errors-lro
a8d44f3
@parthea
fix coverage
7373ae7
@product-auto-label product-auto-label Bot added size: m Pull request size is medium. and removed size: s Pull request size is small. labels Jun 1, 2023
@parthea
parthea marked this pull request as ready for review June 1, 2023 14:34
@parthea
parthea requested review from a team June 1, 2023 14:34
@parthea parthea assigned vchudnov-g Jun 1, 2023
@parthea
parthea requested review from dizcology and vchudnov-g June 1, 2023 14:41
@parthea parthea assigned dizcology Jun 1, 2023
vchudnov-g
vchudnov-g approved these changes Jun 8, 2023
View reviewed changes
@parthea
Merge branch 'main' into add-actionable-errors-lro
fcca949
@parthea
parthea enabled auto-merge (squash) June 12, 2023 15:58
@parthea
parthea merged commit 7dfc3a7 into main Jun 12, 2023
@parthea
parthea deleted the add-actionable-errors-lro branch June 12, 2023 16:00
@release-please release-please Bot mentioned this pull request Jun 12, 2023
chore(main): release 2.11.1 #506
Merged
This was referenced May 30, 2025
chore(main): release 2.0.0 #822
Closed
chore(main): release 2.0.0 #823
Closed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

@dizcology dizcology Awaiting requested review from dizcology
1 more reviewer
@vchudnov-g vchudnov-g vchudnov-g approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@vchudnov-g vchudnov-g

@dizcology dizcology

Labels

size: m Pull request size is medium.

Projects

None yet

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.

3 participants

@parthea @vchudnov-g @dizcology
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.