googleapis / google-cloud-node

Google Cloud Client Library for Node.js

Home Page:https://cloud.google.com/nodejs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bug in Search & Conversation node.js API: cannot list datastore

edudesouza opened this issue · comments

Environment details

  • which product (packages/*):
  • OS: Google Cloud Functions
  • Node.js version: Node 18.15.0
  • npm version: 9.5.0
  • google-cloud-node version: running cloud function local emulator

Steps to reproduce

Hi there, following this doc:

https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-discoveryengine/samples/generated/v1alpha/data_store_service.list_data_stores.js

I cannot list DataStore, but the interesting part is ... the error log points to another project ID, error message, even if I left parent path blank.

ERROR: 7 PERMISSION_DENIED: Discovery Engine API has not been used in project 563584335869 before or it is disabled. Enable
it by visiting https://console.developers.google.com/apis/api/discoveryengine.googleapis.com/overview?project=563584335869 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.

My Code:
image

ERROR Print metadata:
image

Closing this as a duplicate of #4845