Title: Do not throw error on empty LRO response · Issue #257 · googleapis/python-api-core · GitHub
Open Graph Title: Do not throw error on empty LRO response · Issue #257 · googleapis/python-api-core
X Title: Do not throw error on empty LRO response · Issue #257 · googleapis/python-api-core
Description: operation.py throws an error if an LRO finishes but returns an empty response (the error message that it throws is "Unexpected state: Long-running operation had neither response nor error set"). However some APIs, such as Contact Center ...
Open Graph Description: operation.py throws an error if an LRO finishes but returns an empty response (the error message that it throws is "Unexpected state: Long-running operation had neither response nor error set"). Ho...
X Description: operation.py throws an error if an LRO finishes but returns an empty response (the error message that it throws is "Unexpected state: Long-running operation had neither response nor error set&...
Opengraph URL: https://github.com/googleapis/python-api-core/issues/257
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Do not throw error on empty LRO response","articleBody":"[operation.py](https://github.com/googleapis/python-api-core/blob/master/google/api_core/operation.py) throws an error if an LRO finishes but returns an empty response (the error message that it throws is \"Unexpected state: Long-running operation had neither response nor error set\"). However some APIs, such as Contact Center Insights, end LRO without setting either result or error (but set `done: true`). For example, please see [`ExportInsightsDataResponse`](https://cloud.google.com/contact-center/insights/docs/reference/rpc/google.cloud.contactcenterinsights.v1#exportinsightsdataresponse) which is an empty response that is returned after the `ExportInsightsData` LRO is complete.\r\n\r\nWe should update [operation.py](https://github.com/googleapis/python-api-core/blob/master/google/api_core/operation.py) to return an empty response instead of an error when it encounters an empty LRO. For reference, we found a similar issue in the NodeJS operation library and it was fixed [here](https://github.com/googleapis/gax-nodejs/pull/1087).","author":{"url":"https://github.com/TrucHLe","@type":"Person","name":"TrucHLe"},"datePublished":"2021-08-18T18:01:58.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/257/python-api-core/issues/257"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:b62c4c15-d181-8fee-f4aa-2e59d249080a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9246:14011B:269ED0C:355DBEB:6A4F4DA3 |
| html-safe-nonce | 67779b43f1591ee1602e62b43506525a422ae984787fc3287923dcc9eb992515 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MjQ2OjE0MDExQjoyNjlFRDBDOjM1NURCRUI6NkE0RjREQTMiLCJ2aXNpdG9yX2lkIjoiMTIxNTIyMzY0NDg1NjIwODgwMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | ac5fc7c25ef6390518dcf3855768b73abbc1c94f9a0c56b7afc7f7165c539338 |
| hovercard-subject-tag | issue:973925002 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/googleapis/python-api-core/257/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8ea23bf778019a6d7f33dfeabe2a2d3a2c4ef971fe972c05a4e09738cb1f5f7f/googleapis/python-api-core/issues/257 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8ea23bf778019a6d7f33dfeabe2a2d3a2c4ef971fe972c05a4e09738cb1f5f7f/googleapis/python-api-core/issues/257 |
| og:image:alt | operation.py throws an error if an LRO finishes but returns an empty response (the error message that it throws is "Unexpected state: Long-running operation had neither response nor error set"). Ho... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | TrucHLe |
| hostname | github.com |
| expected-hostname | github.com |
| None | b92d11c0aa4a77d54ef4af1078b6a15fb5a70a215b30c4ecf28889d5a8e656d9 |
| turbo-cache-control | no-preview |
| go-import | github.com/googleapis/python-api-core git https://github.com/googleapis/python-api-core.git |
| octolytics-dimension-user_id | 16785467 |
| octolytics-dimension-user_login | googleapis |
| octolytics-dimension-repository_id | 226992456 |
| octolytics-dimension-repository_nwo | googleapis/python-api-core |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 226992456 |
| octolytics-dimension-repository_network_root_nwo | googleapis/python-api-core |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 4b249b445842943ed31549e027f57a8ade9881ed |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width