Issues sending Custom errors to Raygun from Node.js
imdb
Posted on
May 29 2015
Using the examples provided, I am attempting to run this in my project
var raygun = require('raygun');
var raygunClient = new raygun.Client().init({ apiKey: process.env.RAYGUN_APIKEY });
raygunClient.send(new Error(), {message:'test'}, function (response){ });
This comes back with Raygun: error Error: "name" and "value" are required for setHeader(). occurred while attempting to send error with message: [object Object]
I have installed raygun using npm install raygun --save Any ideas?
imdb
Posted on
May 29 2015
Actually figured it out. It's unfortunate error message from Raygun node.js library. If you're seeing that message, it means you did not put in the credentials correctly.
However, after putting in the right key, same code above generates NO error messages and when I sign into the dashboard, it says I have not submitted any data. So now I'm not sure whats happening.
imdb
Posted on
May 29 2015
Issue resolved, the worker thread was terminating due to "throw error" and the actual post was not taking place.
RGUser
Posted on
Jul 16 2015
Hi,
I am hitting the same issue and my Key is correct. Were you able to resolve this issue ?
Callum
Posted on
Jul 16 2015
Responded to via email - for others in future ensure that the parameter you pass to init contains a key with a name of 'apiKey' with that exact casing.