Invalid email or username errors

Symptoms

Error: “An I/O operation failed or was interrupted.”

Error: "error_description" : "Not a valid email or user ID."

Error: “List of potentially invalid parameters : User Account and Service Account Credentials”

Causes

These errors usually occur if the provided user account doesn’t exist, or the client_email field within the service account credentials is invalid. A common reason for this error is typographical errors in the user account field.

Resolving the problem

Ensure that the user account exists.

Ensure that the Delegated User Account Email account is the Google user account that has reports privileges and not the client_email property value in the Service Account Credentials JSON file.