GOOGLE_AI.BAD_KEY_FILE
Error code GOOGLE_AI.BAD_KEY_FILE, raised by packages. Area: GOOGLE_AI.
What it means
- The service account key is not JSON
- The JSON is not a service account key (it needs client_email and private_key)
- The key's token_uri is not an https address
What to do
- Use the JSON key file downloaded for the service account from the Google Cloud console.
- Download a JSON key for the service account in the Google Cloud console (IAM > Service accounts > Keys).
- Use the key file as Google gave it.
In a Try block, a Catch can match this code. An internal error shows a reference such as ERR-…: an administrator finds the details beside it in the server log.
Search words: GOOGLE_AI BAD_KEY_FILE bad key file