Skip to content

Insufficient authentication scopes for Logging #1253

Description

@volgin

I am using the following code from the example:

LoggingOptions logginsOptions = LoggingOptions.defaultInstance();
Logging logging = logginsOptions.service();

When I run the app on Compute Engine, I get the following error:

com.google.cloud.logging.LoggingException: io.grpc.StatusRuntimeException: PERMISSION_DENIED: Request had insufficient authentication scopes.

I use similar code to initialize Datastore and Storage, and that codes works fine. There is no mention of scopes in the examples, and I could not find a clear explanation in the documentation what scopes need to be provided, if any.

Activity

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

Metadata

Metadata

Assignees

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