Skip to content
This repository has been archived by the owner on Dec 10, 2018. It is now read-only.

Assertion Error When Integrating with Express.js #4

Open
handigarde opened this issue Jul 1, 2015 · 3 comments
Open

Assertion Error When Integrating with Express.js #4

handigarde opened this issue Jul 1, 2015 · 3 comments

Comments

@handigarde
Copy link

Integrating with Express.js causes the below assertion error:

AssertionError: false == true
at SharedHandle.add (cluster.js:97:3)
at queryServer (cluster.js:480:12)
at Worker.onmessage (cluster.js:438:7)
at ChildProcess.<anonymous> (cluster.js:692:8)
at ChildProcess.emit (events.js:129:20)
at handleMessage (child_process.js:324:10)
at Pipe.channel.onread (child_process.js:352:11)

The configuration currently being used within the express.js file is:

var datadogExpress;
if(config.advancedMonitoring === true && !/^win/.test(process.platform)) {
  var ddOptions = {
    'response_code': true,
    'method': true,
    'tags': ['touchten-platform:' + config.env]
  };
  datadogExpress = require('connect-datadog')(ddOptions);
}
@handigarde
Copy link
Author

May be related to nodejs/node-v0.x-archive#9261

@techgaun
Copy link

techgaun commented Jul 7, 2015

Can confirm this issue too in express 4. Nodejs version I'm using is 0.12.4 but the error persisted for me with 0.12.5 also. Its most probably related to nodejs/node-v0.x-archive#9261. Am waiting for fix (any ETA?) but is there any temporary workaround? I've not yet been able to dig deeper.

@nodesocket
Copy link

👍 Anybody have a fix?

We are running:

app.use(require('connect-datadog')({
            tags: ['Brandcast'],
            path: true,
            method: true,
            protocol: true,
            response_code: true
        }));

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants