Unable to add Google Document AI processor

Created on 22 June 2023, over 1 year ago
Updated 12 October 2023, about 1 year ago

Problem/Motivation

While trying to add Google Document AI processor, I'm getting the following error in dblog:

Location .../admin/config/structure/document-ocr/processors/new/google_document_ai/configuration
Referrer .../admin/config/structure/document-ocr/processors
Message Google\ApiCore\ValidationException: Could not construct ApplicationDefaultCredentials in Google\ApiCore\CredentialsWrapper::buildApplicationDefaultCredentials() (line 275 of .../Sites/cluster/vendor/google/gax/src/CredentialsWrapper.php).

Steps to reproduce

I tried to follow all the instruction from the README.md file, and was able to download and place what is looking like a valid private://document-ocr/document-ai-credentials.json file.

Proposed resolution

Not sure if this is a bug or if I missed something on the Google Cloud side, indeed I made sure that billing was enabled.

On the Drupal side, my private folder is well configured, as I had no problem adding the OpenAI Audio processor.

Very sorry for posting the first issue on this really promising module. Any hint about how to fix the issue is welcome.

πŸ’¬ Support request
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡°πŸ‡¬Kyrgyzstan dan_metille

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024