Title: Vision: Operation returned from 'purge_product: raises TypeError in 'done'. · Issue #9150 · googleapis/google-cloud-python · GitHub
Open Graph Title: Vision: Operation returned from 'purge_product: raises TypeError in 'done'. · Issue #9150 · googleapis/google-cloud-python
X Title: Vision: Operation returned from 'purge_product: raises TypeError in 'done'. · Issue #9150 · googleapis/google-cloud-python
Description: Environment details Vision API, Product Search, Purge Product OSX 2.7.14 google-cloud-vision 0.39.0 Steps to reproduce Run tests or either of the purge product samples from this PR: GoogleCloudPlatform/python-docs-samples#2349 The LRO fa...
Open Graph Description: Environment details Vision API, Product Search, Purge Product OSX 2.7.14 google-cloud-vision 0.39.0 Steps to reproduce Run tests or either of the purge product samples from this PR: GoogleCloudPlat...
X Description: Environment details Vision API, Product Search, Purge Product OSX 2.7.14 google-cloud-vision 0.39.0 Steps to reproduce Run tests or either of the purge product samples from this PR: GoogleCloudPlat...
Opengraph URL: https://github.com/googleapis/google-cloud-python/issues/9150
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Vision: Operation returned from 'purge_product: raises TypeError in 'done'.","articleBody":"\r\n\r\n#### Environment details\r\n\r\n1. Vision API, Product Search, Purge Product\r\n2. OSX\r\n3. 2.7.14\r\n4. google-cloud-vision 0.39.0\r\n\r\n#### Steps to reproduce\r\n\r\n 1. Run tests or either of the purge product samples from this PR: https://github.com/GoogleCloudPlatform/python-docs-samples/pull/2349\r\n 1. The LRO fails at `operation.done()`\r\n\r\n#### Code example\r\n\r\nsee PR linked above.\r\n\r\n#### Stack trace\r\n```\r\nTraceback (most recent call last):\r\n File \"/Users/yuhanliu/projects/dpe-github/python-docs-samples/vision/cloud-client/product_search/product_in_product_set_management_test.py\", line 88, in test_purge_products_in_product_set\r\n PROJECT_ID, LOCATION, PRODUCT_SET_ID, force=True)\r\n File \"/Users/yuhanliu/projects/dpe-github/python-docs-samples/vision/cloud-client/product_search/product_in_product_set_management.py\", line 153, in purge_products_in_product_set\r\n if operation.done():\r\n File \"/Users/yuhanliu/.virtualenvs/vision-ga/lib/python2.7/site-packages/google/api_core/operation.py\", line 162, in done\r\n self._refresh_and_update()\r\n File \"/Users/yuhanliu/.virtualenvs/vision-ga/lib/python2.7/site-packages/google/api_core/operation.py\", line 154, in _refresh_and_update\r\n self._set_result_from_operation()\r\n File \"/Users/yuhanliu/.virtualenvs/vision-ga/lib/python2.7/site-packages/google/api_core/operation.py\", line 131, in _set_result_from_operation\r\n self._result_type, self._operation.response\r\n File \"/Users/yuhanliu/.virtualenvs/vision-ga/lib/python2.7/site-packages/google/api_core/protobuf_helpers.py\", line 69, in from_any_pb\r\n any_pb.__class__.__name__, pb_type.__name__\r\nTypeError: Could not convert Any to Empty\r\n```\r\n","author":{"url":"https://github.com/dizcology","@type":"Person","name":"dizcology"},"datePublished":"2019-08-30T20:31:02.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":10},"url":"https://github.com/9150/google-cloud-python/issues/9150"}
| 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:728341e2-e611-8ef5-eeb9-8035d6e658e1 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AE5A:15305D:6CDDE3:93BBBB:6A4D44C0 |
| html-safe-nonce | fbb8998df571059f7a7bffdcd29e1cc0e88c85773c629b88dbe3714737697ba2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRTVBOjE1MzA1RDo2Q0RERTM6OTNCQkJCOjZBNEQ0NEMwIiwidmlzaXRvcl9pZCI6IjUyOTAzNjg1MzYwNTIzMTk0MjQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 9fcd342f92f59e3a37265d7db45c5f122873897bd3c5bc9bd14775798ce93006 |
| hovercard-subject-tag | issue:487659584 |
| 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/google-cloud-python/9150/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b1638abeb6d34fbdc39295ae2b57c252a0b280d07beb1afc7b32337ec2755ca4/googleapis/google-cloud-python/issues/9150 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b1638abeb6d34fbdc39295ae2b57c252a0b280d07beb1afc7b32337ec2755ca4/googleapis/google-cloud-python/issues/9150 |
| og:image:alt | Environment details Vision API, Product Search, Purge Product OSX 2.7.14 google-cloud-vision 0.39.0 Steps to reproduce Run tests or either of the purge product samples from this PR: GoogleCloudPlat... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dizcology |
| hostname | github.com |
| expected-hostname | github.com |
| None | 92571a8944142227b7e19cd10918b1ddd06e5066c1ad5bc7e4769cf6140a87e6 |
| turbo-cache-control | no-preview |
| go-import | github.com/googleapis/google-cloud-python git https://github.com/googleapis/google-cloud-python.git |
| octolytics-dimension-user_id | 16785467 |
| octolytics-dimension-user_login | googleapis |
| octolytics-dimension-repository_id | 16316451 |
| octolytics-dimension-repository_nwo | googleapis/google-cloud-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 16316451 |
| octolytics-dimension-repository_network_root_nwo | googleapis/google-cloud-python |
| 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 | 56fc8347865a14e2ec811533d68f929cf4e0ec19 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width