Skip to content

error-reporting Only Supports Authentication Using a Service Account Key #2245

Description

@DominicKramer

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

  1. Create an app that uses the error-reporting library and reports errors.
  2. Enable the Error Reporting API for the current project.
  3. 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.
  4. 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

  1. stephenplusplus commented on Apr 21, 2017

    @stephenplusplus
    Contributor

    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.

  2. added 2 commits that reference this issue on Apr 21, 2017
    344d973
    4b714bc
  3. added a commit that references this issue on Apr 21, 2017
    cf3fffd
  4. added 2 commits that reference this issue on Jan 14, 2026
    9ba72a3
    ec9316e
  5. added a commit that references this issue on Feb 5, 2026
    d59756d
  6. added a commit that references this issue on Feb 23, 2026
    c3d43c6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions