-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Labels
api: visionIssues related to the Cloud Vision API.Issues related to the Cloud Vision API.externalThis issue is blocked on a bug with the actual product.This issue is blocked on a bug with the actual product.priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.Important issue which blocks shipping the next release. Will be fixed prior to next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
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: Purge products GoogleCloudPlatform/python-docs-samples#2349
- The LRO fails at
operation.done()
Code example
see PR linked above.
Stack trace
Traceback (most recent call last):
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
PROJECT_ID, LOCATION, PRODUCT_SET_ID, force=True)
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
if operation.done():
File "/Users/yuhanliu/.virtualenvs/vision-ga/lib/python2.7/site-packages/google/api_core/operation.py", line 162, in done
self._refresh_and_update()
File "/Users/yuhanliu/.virtualenvs/vision-ga/lib/python2.7/site-packages/google/api_core/operation.py", line 154, in _refresh_and_update
self._set_result_from_operation()
File "/Users/yuhanliu/.virtualenvs/vision-ga/lib/python2.7/site-packages/google/api_core/operation.py", line 131, in _set_result_from_operation
self._result_type, self._operation.response
File "/Users/yuhanliu/.virtualenvs/vision-ga/lib/python2.7/site-packages/google/api_core/protobuf_helpers.py", line 69, in from_any_pb
any_pb.__class__.__name__, pb_type.__name__
TypeError: Could not convert Any to Empty
Metadata
Metadata
Assignees
Labels
api: visionIssues related to the Cloud Vision API.Issues related to the Cloud Vision API.externalThis issue is blocked on a bug with the actual product.This issue is blocked on a bug with the actual product.priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.Important issue which blocks shipping the next release. Will be fixed prior to next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.