Skip to main content

AI.BAD_KEY

Error code AI.BAD_KEY, raised by packages. Area: AI.

What it means​

  • The service-account key is not valid JSON
  • The service-account private key cannot be used: …

What to do​

  • Use the service account's JSON key file as Google Cloud downloads it.
  • Use the JSON key file Google created for the service account.

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: AI BAD_KEY bad key