Failed to invoke procedure `apoc.nlp.gcp.entities.stream`: Caused by: java.io.IOException

Hi,
I am using desktop version of Neo4j 4.0.3 with GDS and APOC (apoc-4.0.0.12-all.jar & apoc-nlp-dependencies-4.0.0.12.jar) plugins.
I issue following command in Cypher
MATCH (a:Article {uri: "https://neo4j.com/blog/pokegraph-gotta-graph-em-all/"})
CALL apoc.nlp.gcp.entities.stream(a, {
key: '',
nodeProperty: "body"
})
YIELD value
UNWIND value.entities AS entity
RETURN entity;

Whenever I execute the above command, I receive the following error:

Neo.ClientError.Procedure.ProcedureCallFailed

Failed to invoke procedure apoc.nlp.gcp.entities.stream: Caused by: java.io.IOException: Server returned HTTP response code: 403 for URL: https://language.googleapis.com/v1/documents:analyzeEntities?key=

I have the API key setup in my project and also enabled services in GCP project
NAME TITLE
endpoints.googleapis.com Google Cloud Endpoints
servicecontrol.googleapis.com Service Control API
servicemanagement.googleapis.com Service Management API

Please help in resolving the above issue.

Thanks & Regards,
Rajeev

1 Like

I think that error code is an auth based one. Is the key that it shows in the error message the one that you expect to see?