GeezerVison is showing github.com — `error-reporting` Only Supports Authentication Using a Service Account Key · Issue #2245 · googleapis/google-cloud-node
error-reporting Only Supports Authentication Using a Service Account Key #2245
Description
The @google-cloud/[email protected] package does not work locally or on App Engine Flexible Environment if a service account key is not specified. That is, neither automatic nor manually specified errors are reported in the Error Reporting console.
Environment details
- OS: OS X 10.12.4
- Node.js version: v6.9.4
- npm version: 3.10.10
- google-cloud-node version: HEAD
Steps to reproduce
- Create an app that uses the
error-reporting library and reports errors.
- Enable the Error Reporting API for the current project.
- Use
gcloud beta auth application-default login to authenticate on a development machine with gcloud initialized to use the project with the Error Reporting API enabled.
- Run
NODE_ENV=production GCLOUD_PROJECT=<projectId> npm start.
Actual Results
Errors are not reported in the Error Reporting console.
Expected Results
Errors should be reported in the Error Reporting console.
Making sure to follow these steps will guarantee the quickest resolution possible.
Thanks!
Activity
stephenplusplus commented on Apr 21, 2017
In case this is helpful, there's a new method on the @google-cloud/common Service class called getProjectId(). This uses the google-auto-auth client to detect and store the project ID on the instance as service.projectId.
added 2 commits that reference this issue
on Apr 21, 2017This issue will close once commit 344d973 is merged into the 'master' branch.344d973 This issue will close once commit 4b714bc is merged into the 'master' branch.4b714bc added a commit that references this issue
on Apr 21, 2017This issue will close once commit cf3fffd is merged into the 'main' branch.cf3fffd added 2 commits that reference this issue
on Jan 14, 2026This issue will close once commit 9ba72a3 is merged into the 'main' branch.9ba72a3 This issue will close once commit ec9316e is merged into the 'main' branch.ec9316e added a commit that references this issue
on Feb 5, 2026This issue will close once commit d59756d is merged into the 'main' branch.d59756d added a commit that references this issue
on Feb 23, 2026This issue will close once commit c3d43c6 is merged into the 'main' branch.c3d43c6
Metadata
Metadata
Development
No branches or pull requestsIssue actions