Skip to content

customer id could not be inferred from the request or caller identity. #105

Open

Description

@amjf10

AlertCenter Quickstart

Exception in thread "main" com.google.api.client.googleapis.json.GoogleJsonResponseException: 400 Bad Request
{
"code" : 400,
"errors" : [ {
"domain" : "global",
"message" : "customer id could not be inferred from the request or caller identity.",
"reason" : "badRequest"
} ],
"message" : "customer id could not be inferred from the request or caller identity.",
"status" : "INVALID_ARGUMENT"
}
at com.google.api.client.googleapis.json.GoogleJsonResponseException.from(GoogleJsonResponseException.java:150)
at com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest.newExceptionOnError(AbstractGoogleJsonClientRequest.java:113)
at com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest.newExceptionOnError(AbstractGoogleJsonClientRequest.java:40)
at com.google.api.client.googleapis.services.AbstractGoogleClientRequest$1.interceptResponse(AbstractGoogleClientRequest.java:443)
at com.google.api.client.http.HttpRequest.execute(HttpRequest.java:1092)
at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:541)
at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:474)
at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.execute(AbstractGoogleClientRequest.java:591)
at AdminSDKAlertCenterQuickstart.main(AdminSDKAlertCenterQuickstart.java:86)

Activity

  1. joey-mcadams commented on Sep 8, 2022

    @joey-mcadams

    Running into the same thing trying to authenticate over Rest directly.

  2. joey-mcadams commented on Sep 8, 2022

    @joey-mcadams

    Just a heads up. My fix for this.

    I was using the service account ID when creating my JWT token instead of the admin account ID. When I switched those, everything seemed to work correctly.

  3. usundarj commented on Oct 13, 2022

    @usundarj

    Hi @joey-mcadams, I am facing the same issue, Shall I use the previous version of google-api-services-alertcenter to get the alert center events.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions