Open lelesrc opened 6 months ago
When using a documentai node, the following error is returned: message: "Error: 3 INVALID_ARGUMENT: Request contains an invalid argument."
message: "Error: 3 INVALID_ARGUMENT: Request contains an invalid argument."
Define apiEndpoint in file documentai.js:191
189 documentProcessorServiceClient = new DocumentProcessorServiceClient({ 190 "credentials": credentials, 191 "apiEndpoint": "eu-documentai.googleapis.com" 192 });
apiEndpoint could be inferred from location (eu/us) or set by the user in node config.endPoint (more future-proof).
Environment details
Steps to reproduce
When using a documentai node, the following error is returned:
message: "Error: 3 INVALID_ARGUMENT: Request contains an invalid argument."
Workaround
Define apiEndpoint in file documentai.js:191
Fix
apiEndpoint could be inferred from location (eu/us) or set by the user in node config.endPoint (more future-proof).