Skip to content

Insufficient authentication scopes for Logging #1253

@volgin

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.

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