Skip to content
This repository was archived by the owner on Mar 5, 2026. It is now read-only.
This repository was archived by the owner on Mar 5, 2026. It is now read-only.

Only try to authenticate if reporting is enabled. #550

@rhodgkins

Description

@rhodgkins

When running this package locally with reportMode: 'never' which prevents any reporting but we still get an console message about not being able to find credential information because when creating the error reporting client authentication is still attempted.

Would it be possible for a similar check be put in before attempting this (both API key and obtaining an access token)?

Metadata

Metadata

Assignees

Labels

api: clouderrorreportingIssues related to the googleapis/nodejs-error-reporting API.priority: p3Desirable enhancement or fix. May not be included in next release.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions