A "net::ERR_NAME_NOT_RESOLVED" error is not reported in Sentry
See original GitHub issue- Review the documentation: https://docs.sentry.io/
- Search for existing issues: https://github.com/getsentry/sentry-javascript/issues
- Use the latest release: https://github.com/getsentry/sentry-javascript/releases
- Provide a link to the affected event from your Sentry account
Package + Version
-
@sentry/browser
-
@sentry/node
-
raven-js
-
raven-node
(raven for node) - other:
Version:
5.13.0
Description
I am initializing Sentry like this:
Sentry.init({
dsn: <my sentry dsn>
});
And then in my code I force an error like this:
function reqListener () {
console.log(this.responseText);
}
let oReq = new XMLHttpRequest();
oReq.addEventListener("load", reqListener);
oReq.open("GET", "http://whiizzleee.commm/hahahahaha");
oReq.send();
This results in a “net::ERR_NAME_NOT_RESOLVED” error. I can see the error in the console, but Sentry is not reporting it.
I can see in the dev console, that the error is thrown at return originalSend.apply(this, args);
in the trycatch.ts of sentry. Also in the network tab I do not see a request being sent to Sentry.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:8 (4 by maintainers)
Top Results From Across the Web
No errors reported · Issue #6 · getsentry/sentry-react-native
1) and I'm trying to setup react-native-sentry I've configured according to the docs and everything seems to build and run fine, but no...
Read more >Sentry not reporting any crashes
I recently integrated sentry into my expo react-native project. ... build that the test errors fire, but my actual crash is not reported....
Read more >Integrate sentry in React Native project not working drop error ...
I want to integrate sentry tool for react native project crash report so below is my code import { AppRegistry } from 'react-native';...
Read more >Sentry error reporting for Ember.js | Mainmatter - Simplabs
Are you confident that your apps have no bugs? Do you not need a support team because no user ever complains about something...
Read more >Sentry Error Reporting By Example: Part 1 - codeburst
js: Used as a general purpose development tool; not part of the application. Used the latest (8.12.0) LTS version available; Sentry: A sentry...
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
I understand. OK, thank you for the explanations.
Yes, if code fails in any way there, eg. accessing
null.foo
it’d also catch it. The reason for wrapping vs. allowing it to bubble is that this way we have an access to the handler itself, it’s name, it’s event object etc. And not only error.We could, but in most cases it’d be simply way too noisy.