Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

DataplexServiceClient fails with google.api_core.exceptions.MethodNotImplemented

Hi!

I'm struggling with using DataplexServiceClient. It fails with google.api_core.exceptions.MethodNotImplemented: 501 Received http2 header with status: 404 on any call I tried (get_asset, list_lakes, create_asset). I can use other APIs (e.g. listing buckets in storage.Client() works like a charm, but also dataplex_v1.CatalogServiceClient() seems to be working fine for me). I suspect some stupid misconfiguration on my side, but couldn't google any similar problem. 

Example code snippet:

dataplex_client = dataplex_v1.DataplexServiceClient()
res = dataplex_client.list_lakes(list_lakes)
res.result()
print(f"Result: {res}")

Exception is raised on res = dataplex_client.list_lakes(list_lakes) line.

Any thoughts what might be wrong?

0 2 143
2 REPLIES 2