DLP : Default application credentials are not getting picked up when running locally #2231
Closed
Description
Running code locally gives me:
"Error in inspectString: io.grpc.StatusRuntimeException: PERMISSION_DENIED: DLP API has not been used in project usable-auth-library before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/dlp.googleapis.com/overview?project=usable-auth-library then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry."
I need to explicitly provide GOOGLE_APPLICATION_CREDENTIALS env var, gcloud auth application-default login
does not work.