Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Just importing this package in a non-GCP environment logs errors to console #800

Closed
jonahsnider opened this issue Feb 6, 2022 · 0 comments · Fixed by #801
Closed

Just importing this package in a non-GCP environment logs errors to console #800

jonahsnider opened this issue Feb 6, 2022 · 0 comments · Fixed by #801
Labels
api: cloudprofiler Issues related to the googleapis/cloud-profiler-nodejs API. 🚨 This issue needs some love. triage me I really want to be triaged.

Comments

@jonahsnider
Copy link
Contributor

jonahsnider commented Feb 6, 2022

Description

Just importing this package (not calling .start()) in a non-GCP environment causes the following message to be printed to the console:

failed to set logging project id Error: Unable to detect a Project Id in the current environment.
To learn more about authentication and Google APIs, visit:
https://cloud.google.com/docs/authentication/getting-started

Introduced in #780

Reproduction

  1. Clone this repo, npm install, npm run compile
  2. Run node .
  3. Wait ~8s as the profiler initializes
  4. The message should be printed to the console immediately before the program exits without error
@product-auto-label product-auto-label bot added the api: cloudprofiler Issues related to the googleapis/cloud-profiler-nodejs API. label Feb 6, 2022
@yoshi-automation yoshi-automation added the triage me I really want to be triaged. label Feb 7, 2022
@amchiclet amchiclet self-assigned this Feb 10, 2022
@yoshi-automation yoshi-automation added the 🚨 This issue needs some love. label Feb 11, 2022
@amchiclet amchiclet removed their assignment Sep 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: cloudprofiler Issues related to the googleapis/cloud-profiler-nodejs API. 🚨 This issue needs some love. triage me I really want to be triaged.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants