send failing in node/express app
P Whitfield
Posted on
Mar 02 2015
I'm trialing Raygun and I've tried both the express middleware and sending events manually but I get the following error:
Mar 01 18:28:28 lawpath-api-dev app/web.1: Unhandled rejection Error: "name" and "value" are required for setHeader().
Mar 01 18:28:28 lawpath-api-dev app/web.1: at ClientRequest.OutgoingMessage.setHeader (_http_outgoing.js:333:11)
Mar 01 18:28:28 lawpath-api-dev app/web.1: at new ClientRequest (_http_client.js:101:14)
Mar 01 18:28:28 lawpath-api-dev app/web.1: at Object.exports.request (http.js:49:10)
Mar 01 18:28:28 lawpath-api-dev app/web.1: at Object.exports.request (https.js:136:15)
Mar 01 18:28:28 lawpath-api-dev app/web.1: at Object.send (/app/node_modules/raygun/lib/raygun.transport.js:26:22)
Mar 01 18:28:28 lawpath-api-dev app/web.1: at raygun.send (/app/node_modules/raygun/lib/raygun.js:52:21)
Mar 01 18:28:28 lawpath-api-dev app/web.1: at /app/routes/auth.js:39:18
Mar 01 18:28:28 lawpath-api-dev app/web.1: at tryCatcher (/app/node_modules/bluebird/js/main/util.js:24:31)
Mar 01 18:28:28 lawpath-api-dev app/web.1: at Promise._settlePromiseFromHandler (/app/node_modules/bluebird/js/main/promise.js:466:31)
Mar 01 18:28:28 lawpath-api-dev app/web.1: at Promise._settlePromiseAt (/app/node_modules/bluebird/js/main/promise.js:545:18)
Mar 01 18:28:28 lawpath-api-dev app/web.1: at Promise._settlePromises (/app/node_modules/bluebird/js/main/promise.js:661:14)
Mar 01 18:28:28 lawpath-api-dev app/web.1: at Async._drainQueue (/app/node_modules/bluebird/js/main/async.js:79:16)
Mar 01 18:28:28 lawpath-api-dev app/web.1: at Async._drainQueues (/app/node_modules/bluebird/js/main/async.js:89:10)
Mar 01 18:28:28 lawpath-api-dev app/web.1: at Immediate.Async.drainQueues [as _onImmediate] (/app/node_modules/bluebird/js/main/async.js:14:14)
Mar 01 18:28:28 lawpath-api-dev app/web.1: at processImmediate [as _immediateCallback] (timers.js:358:17)
Any thoughts on what is going wrong?
Daniel
Posted on
Mar 03 2015
Hey,
Have just been having a look into this - I can't replicate it myself. Is there anything special you've done in the setup of the module?
I'm assuming that you're using the latest version of the raygun4node?
Cheers, Daniel
Raygun