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.

Ember Plugin swallows errors from Console

See original GitHub issue

Do you want to request a feature or report a bug?

This is a bug.

What is the current behavior?

I’ve included Raven v3.15 both through the CDN and bower install raven-js and import it according to the steps listed at https://docs.sentry.io/clients/javascript/integrations/ember. When I manually throw an error throw new Error('This should be in the console') it never shows any signs of failure in the console, and it does not show up on the Sentry dashboard.

If I leave out the Ember plugin the errors shows up on Sentry’s Dashboard but not in the console.

What is the expected behavior?

The error should always be visible in the console as opposed to being swallowed. In addition, the error should also be visible on the Sentry dashboard.

This shows errors in the console but not on the Dashboard:

app.import('bower_components/raven-js/dist/raven.js');
// app.import('bower_components/raven-js/dist/plugins/ember.js');

This shows errors on the Dashboard but not in the console:

app.import('bower_components/raven-js/dist/raven.js');
app.import('bower_components/raven-js/dist/plugins/ember.js');

Environment This was tested on macOS in both Chrome and Firefox. The versions of Raven tested are 3.14 and 3.15, hosted Sentry.

I haven’t seen this work with the Ember plugin – my only experience with Sentry has been the standalone version (no plugins).

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:5
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
LewisJElliscommented, May 17, 2017

Thanks for the report and details, @mirague.

Could you include a minimum complete example of where you do the importing, where you instantiate/configure Raven, and where you throw? I’d like to reproduce this locally to investigate and want to make sure I start from the same place.

0reactions
kamilogorekcommented, Mar 31, 2020

@iamareebjamal yes please, preferably following our issue template (event link, repro case etc.) Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Ember swallowing errors
Would anyone know why ember would swallow errors? Every time I've had an error lately it just failed ... But not a single...
Read more >
JavaScript error handling with Ember.js · Raygun Blog
Setting up error handling with Ember. js. Adding automatic error tracking to your Ember app can be done in seconds. Firstly, include the...
Read more >
Ember.Logger.log is deprecated and console.info gives 'no ...
For logging, I used to use Ember.Logger.log('blah'); but that now throws warnings in the console that it's deprecated. There's a link in the ......
Read more >
How to get New Relic Brower working in an EmberJS app?
That's because Ember comes with several error-catching mechanisms built-in that will swallow errors before they make it to window.onerror ...
Read more >
fastboot-express-middleware - npm
An Express middleware for rendering Ember apps with FastBoot. ... In order to swallow errors and return a 200 status code with an...
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