Invalid JSON formatting

Symptoms

Error: “Service Account Credentials don't appear to be in a valid json format.”

Error: “An error occurred indicating a json parsing problem. Usually used when non-well-formed content (content that does not conform to JSON syntax as per specification) is encountered. For further details see the "Raw Error Message" and the additional messages”

Error: “Invalid UTF-8 start byte”

Error: “An error occurred indicating a json parsing problem. Usually used when non-well-formed content (content that does not conform to JSON syntax as per specification) is encountered. For further details see the "Raw Error Message" and the additional messages”

Causes

These errors occur when the service account credentials are not in a valid JSON format.

Resolving the problem

Follow these steps to resolve your invalid JSON formatting error.

  1. Verify that the service account credentials are in a valid JSON format.
    Tip: An online JSON formatter can identify problems with the JSON format.
  2. If the error persists, generate a new service account credentials key.