No stacktrace and error details showed.
See original GitHub issueHi everyone. I am using your Angular2 - raven-js integration but its appear do not work for me, no a really error is showed on sentry console.
Here is my NgModule config for Raven-js
Raven.config(PUBLIC DSN HERE ,
{
logger: 'javascript',
environment: process.env.ENV,
release: process.env.VERSION,
ignoreErrors: [
'ObjectUnsubscribedError',
'WebSocket *',
'WebSocket connection to *'
]
}).install();
Raven.setTagsContext({
version: process.env.VERSION
});
class RavenErrorHandler implements ErrorHandler {
handleError(err:any) : void {
Raven.captureException(err.originalError);
}
providers: [{ provide: ErrorHandler, useClass: RavenErrorHandler }]
Also i uploaded my .js and .map files to sentry artifacts. I am using : https://github.com/AngularClass/angular2-webpack-starter and raven-js 3.7.0. if anyone can help, I appreciate it. Thanks !
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
c# - Error Details without Stack Trace
Always , all the details are serialized into the HTTP response ( Message , ExceptionMessage , ExceptionType , and StackTrace ). If I...
Read more >No stack traces (Java)
Troubleshooting steps for situations when stack traces are missing for error traces with your New Relic Java app.
Read more >Hide / Remove Stack Trace information - Microsoft Q&A
I have no idea what else is causing the stack trace to still appear for that particular 400 error. The other errors were...
Read more >A simple way to show stack trace on error in R - Kun Ren
The error message contains detailed source information and can be helpful for user to identify the line of code that the error occurs....
Read more >What is a Stack Trace Error?
Stack trace error is a generic term frequently associated with long error messages. The stack trace information identifies where in the program the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@combmag – it should be
err.originalError
. The property name changed between Angular 2 release candidates@cesarlvielma – Do you have an example of such an error that I can use to test?
Not sure I follow. If you want the original stack trace, your build has to generate source maps and Sentry has to be able to locate them. See our source maps docs.
@benvinegar if I may, according to the angular
ErrorHandler
source code (https://github.com/angular/angular/blob/master/modules/@angular/core/src/error_handler.ts#L51)originalError
might be undefined. If you just throw a random error, let’s say in a component’s constructor, theoriginalError
prop will be empty. Why don’t we just send Raven theerr
passed as an argument?