Skip to content
This repository was archived by the owner on Apr 3, 2024. It is now read-only.
This repository was archived by the owner on Apr 3, 2024. It is now read-only.

debug agent fails to activate without a useful error message #357

@ofrobots

Description

@ofrobots

On my simple app, I had:

const debug = require('@google-cloud/debug-agent').start();
❯ node log.js
ERROR:@google-cloud/debug-agent: getaddrinfo ENOTFOUND metadata.google.internal metadata.google.internal:80
^C

❯ GCLOUD_DEBUG_LOGLEVEL=4 node log.js
INFO:@google-cloud/debug-agent: activating v8 breakpoint listener (permanent)
INFO:@google-cloud/debug-agent: Unique ID for this Application: SHA1-c9f5b63f91648d636b156d1d6a92e6b527c28e62
ERROR:@google-cloud/debug-agent: getaddrinfo ENOTFOUND metadata.google.internal metadata.google.internal:80

The debug agent did not work. With the following change to my source the debugger started working:

const debug = require('@google-cloud/debug-agent').start({
  projectId: 'my real project id'
});

So the lack of the project id was a problem, but the error message was unhelpful.

Metadata

Metadata

Labels

🚨This issue needs some love.api: clouddebuggerIssues related to the googleapis/cloud-debug-nodejs API.triage meI really want to be triaged.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions