-
Notifications
You must be signed in to change notification settings - Fork 213
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to handle don’t report in Angular Rollbar Service #1090
Comments
hey @hebaahmedsaleh. maybe too late for you but maybe useful for the next with the same problem. one thing you could try is to use the callback (described here: https://docs.rollbar.com/docs/javascript#usage): Rollbar.error(e, function(err, data) {
if (err) {
console.log("Error while reporting error to Rollbar: ", e);
} else {
console.log("Error successfully reported to Rollbar. UUID:", data.result.uuid);
}
}); It might be that your token has not the permission needed to log? I also had some struggles to properly log it with angular, since not everything returned is an error (e.g. #975) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am using Angular v12 and implemented Rollbar according to docs I have a class for Rollbar to report issues
The problem is that the error received in handleerror is always the message so how I can receive it as an error object which I got from failure of api called for example ?
The text was updated successfully, but these errors were encountered: