question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No stacktrace and error details showed.

See original GitHub issue

Hi 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. sentry

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:closed
  • Created 7 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
benvinegarcommented, Oct 19, 2016

error.originalException

@combmag – it should be err.originalError. The property name changed between Angular 2 release candidates

anyway , some errors do not show origin issue code,

@cesarlvielma – Do you have an example of such an error that I can use to test?

show me only vendor stack trace (Angular2 for this case) and not my .ts file where error is coded.

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.

0reactions
QuentinFchxcommented, Nov 18, 2016

@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, the originalError prop will be empty. Why don’t we just send Raven the err passed as an argument?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found