This repository was archived by the owner on Sep 5, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Sep 5, 2023. It is now read-only.
PolicyTagManagerClient methods: 501 Operation is not implemented, or supported, or enabled #33
Copy link
Copy link
Closed
Labels
api: datacatalogIssues related to the googleapis/python-datacatalog API.Issues related to the googleapis/python-datacatalog 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
I'm writing a script to use the PolicyTagManagerClient, but all methods fail with a google.api_core.exceptions.MethodNotImplemented: 501 Operation is not implemented, or supported, or enabled. message.
- Search the issues already opened: https://github.com/googleapis/python-datacatalog/issues
- Search StackOverflow: https://stackoverflow.com/questions/tagged/google-cloud-platform+python
Environment details
- OS type and version: Windows 10
- Python version: 3.7.2
- pip version: 20.1.1
google-cloud-datacatalogversion: 0.8.0
Steps to reproduce
- Run a script calling any of the PolicyTagManagerClient methods.
Code example
https://github.com/googleapis/python-datacatalog/pull/37/files
OR simply:
def create_taxonomy(project_id):
"""Create a Taxonomy."""
location = datacatalog_v1beta1.PolicyTagManagerClient.location_path(project_id, 'us')
taxonomy = types.Taxonomy()
taxonomy.display_name = "My Taxonomy"
taxonomy.description = "This Taxonomy represents ..."
datacatalog_v1beta1.PolicyTagManagerClient().create_taxonomy(
parent=location, taxonomy=taxonomy)Stack trace
grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
status = StatusCode.UNIMPLEMENTED
details = "Operation is not implemented, or supported, or enabled."
debug_error_string = "{"created":"@1590760876.084000000","description":"Error received from peer ipv4:216.58.192.42:443","file":"src/core/lib/surface/call.cc","file_line":1056,"grpc_message":"Operation is not implemented, or supported, or enabled.","grpc_status":12}"
>
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "policy_tags_manager.py", line 118, in <module>
PolicyTagsManagerCLI.run(sys.argv[1:] if len(sys.argv) > 0 else sys.argv)
File "policy_tags_manager.py", line 81, in run
args.func(args)
File "policy_tags_manager.py", line 110, in __create_taxonomy
description=args.description)
File "policy_tags_manager.py", line 34, in create_taxonomy
return self.__datacatalog_facade.create_taxonomy(project_id, display_name, description)
File "policy_tags_manager.py", line 63, in create_taxonomy
parent=location, taxonomy=taxonomy)
File "<REDACTED-PATH>\gcp-datacatalog-python\env\lib\site-packages\google\cloud\datacatalog_v1beta1\gapic\policy_tag_manager_client.py", line 305, in create_taxonomy
request, retry=retry, timeout=timeout, metadata=metadata
File "<REDACTED-PATH>\gcp-datacatalog-python\env\lib\site-packages\google\api_core\gapic_v1\method.py", line 143, in __call__
return wrapped_func(*args, **kwargs)
File "<REDACTED-PATH>\gcp-datacatalog-python\env\lib\site-packages\google\api_core\retry.py", line 286, in retry_wrapped_func
on_error=on_error,
File "<REDACTED-PATH>\gcp-datacatalog-python\env\lib\site-packages\google\api_core\retry.py", line 184, in retry_target
return target()
File "<REDACTED-PATH>\gcp-datacatalog-python\env\lib\site-packages\google\api_core\timeout.py", line 214, in func_with_timeout
return func(*args, **kwargs)
File "<REDACTED-PATH>\gcp-datacatalog-python\env\lib\site-packages\google\api_core\grpc_helpers.py", line 59, in error_remapped_callable
six.raise_from(exceptions.from_grpc_error(exc), exc)
File "<string>", line 3, in raise_from
google.api_core.exceptions.MethodNotImplemented: 501 Operation is not implemented, or supported, or enabled.
Metadata
Metadata
Assignees
Labels
api: datacatalogIssues related to the googleapis/python-datacatalog API.Issues related to the googleapis/python-datacatalog 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.
Activity
ekohlwey-fb commentedon Jun 17, 2020
I'm having this issue as well. Does the Google team have an official view on whether or not this is a bug or misuse of the API?
meredithslota commentedon Jun 18, 2020
Hi there — we are actively investigating this but do not yet have an answer. Google folks, this is being tracked at internal bug b/159220336.
6 remaining items
tmshn commentedon Sep 24, 2020
I have a same issue for
list_tags(using v2.0.0).Note that this happens quite often, but not always. The API call succeeds around 3%.
Here's the stacktrace:
yongyct commentedon Sep 25, 2020
Getting this issue for
create_entry_group.Earlier docker images for my application a few days/past couple of weeks earlier that were working are now broken too. Very frustrating to have to deal with sudden production issues... would be good to have resolution soon...
tameemiftikhar commentedon Sep 25, 2020
Seeing same issue for list_tags with images that were built a week ago.
joaopamaral commentedon Sep 25, 2020
I'm having this same issue for
list_tags(google-cloud-datacatalog==1.0.0)! Yesterday was working with no problem and today I've noticed that after they change the Data Catalog UI, my code broke!tmshn commentedon Sep 28, 2020
I don't see this problem happen today, so maybe this is the problem on the API side, not the library side?
tameemiftikhar commentedon Sep 28, 2020
The problem has gone away for me as well. So I'm assuming it was on the API side.
joaopamaral commentedon Sep 29, 2020
Same here. The library is working again!
ricardolsmendes commentedon Sep 29, 2020
Thanks for the updates, folks
Important to let it clear the bug that caused
list_tagsto fail was probably caused by an internal service disruption that might already be resolved, but it is not the same error originally reported here, despite the similar error messages.meredithslota commentedon Dec 11, 2020
The internal issue b/159220336 for the problem with the API was fixed, and the other issue was an internal service disruption. Closing this issue but please reopen a new issue if the problem re-occurs because it might be indicative of a new/different problem. Thanks!
voitovych-com commentedon Nov 2, 2022
I had a similar problem.
code:
error:
meredithslota commentedon Nov 3, 2022
@rvoitovich Your issue seems to be in a different client library — https://cloud.google.com/python/docs/reference/run/latest/google.cloud.run_v2.types.ListServicesRequest seems to be the correct reference here. The relevant GitHub repo to report this issue on is here: https://github.com/googleapis/python-run Thanks!