AppD Archive

Node JS agent throws an error

CommunityUser
Splunk Employee
Splunk Employee

I'm trying to run NodeJS agent on SaaS controller.

The agent wizard generates this method call for me:

require("appdynamics").profile({
  controllerHostName: '***.saas.appdynamics.com',
  controllerPort: 443, // If SSL, be sure to enable the next line
  controllerSslEnabled: true, // Optional - use if connecting to controller via SSL
  accountName: '***', // Required for a controller running in multi-tenant mode.
  accountAccessKey: '***', // Required for a controller running in multi-tenant mode.
  applicationName: 'AppTest',
  tierName: 'Test',
  nodeName: 'Node ***', // Node names must be unique.  A unique name has been generated for you.
  debug: false // Optional - defaults to false.
});

This is an error what i've got: 

/Users/Alex/Projects/NodeBB/node_modules/appdynamics/lib/core/proxy.js:206
var orig = obj[meth];
^
TypeError: Cannot read property 'listen' of undefined
at /Users/Alex/Projects/NodeBB/node_modules/appdynamics/lib/core/proxy.js:206:19
at Array.forEach (native)
at Proxy.after (/Users/Alex/Projects/NodeBB/node_modules/appdynamics/lib/core/proxy.js:205:9)
at SocketioProbe.attach (/Users/Alex/Projects/NodeBB/node_modules/appdynamics/lib/probes/socket.io-probe.js:40:9)
at Agent.loadProbes (/Users/Alex/Projects/NodeBB/node_modules/appdynamics/lib/core/agent.js:298:27)
at Agent.init (/Users/Alex/Projects/NodeBB/node_modules/appdynamics/lib/core/agent.js:246:8)
at self.(anonymous function) [as profile] (/Users/Alex/Projects/NodeBB/node_modules/appdynamics/lib/core/agent.js:372:26)
at Object.<anonymous> (/Users/Alex/Projects/NodeBB/app.js:23:24)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)

 I'm using Mac OS X 10.9.5, Node v. 0.10.33, npm v. 1.4.28, AppDynamics package v. 4.0.0 (wizard asks to install v. 3.9.6 but there is no such in NPM registry )

Could you please help? 

0 Karma

Kyle_Furlong
Contributor

Hey Alexander,

Can you confirm your SocketIO library version is < 1.0? If so, my best information is we will need to upgrade that library.

With kindness,

Kyle

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

Thanks, Ryan!

I've been using v.0.9, upgraded and everything works now!

0 Karma
Get Updates on the Splunk Community!

[Puzzles] Solve, Learn, Repeat: Dynamic formatting from XML events

This challenge was first posted on Slack #puzzles channelFor a previous puzzle, I needed a set of fixed-length ...

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  &#x1f680; Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Stronger Security with Federated Search for S3, GCP SQL & Australian Threat ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...