Error while processing event
I have an issue when sentry processes any event (next picture) in a BackboneJS project.
I capture exceptions this way:
/**
* Function that will be invoked when there is an error with AJAX and
* the it will be sent to the sentry server.
* @param event
* @param request
* @param settings
*/
$(document).ajaxError(function(event, request, settings, thrownError) {
Sentry.captureException(thrownError || request.statusText, {
extra: {
type: settings.type,
url: settings.url,
data: settings.data,
status: request.status,
error: thrownError || request.statusText,
response: request.responseText.substring(0, 100)
}
});
});
/**
* Function that will be invoked when there is an error
* @param ex
*/
function captureError(ex) {
Sentry.captureException(ex.message, {
extra: {
name: ex.name,
stack: ex.stack,
message: ex.message
}
});
}
I’m usign a npm package : “@sentry/browser”: “^4.2.4”.
Looking for a solution, Chrome inspector lets me know that i had two 404 Not Found responses for /committers/ request.( Maybe, it could be the problem?)
Have you ever had this error? Did u know a solution, a workaround or even a clue where to start researching.