Skip to content

Instantly share code, notes, and snippets.

@shackpank
Created April 28, 2014 09:51
Show Gist options
  • Save shackpank/35c130623e52926b6af1 to your computer and use it in GitHub Desktop.
Save shackpank/35c130623e52926b6af1 to your computer and use it in GitHub Desktop.
Bugsnag missing events with £ symbol in custom data
// add your API key, & run with `npm install bugsnag@1.3.0 && NODE_ENV=development node test.js`
// only the second error appears in the dashboard
var bugsnag = require('bugsnag');
bugsnag.register('/* key */', {
appVersion: 'N/A',
notifyReleaseStages: [ 'development' ]
});
bugsnag.notify(new Error('Pound symbol in extraData bad path test'), {
extraData: {
currency: '£'
}
});
bugsnag.notify(new Error('Pound symbol in extraData good path test'), {
extraData: {
currency: 'POUND'
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment