Skip to content
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

ERROR in Sentry Plugin: RequestError: Error: getaddrinfo ENOTFOUND sentry.io sentry.io:443 #66

Closed
jpreynat opened this issue Jul 3, 2018 · 1 comment · Fixed by #67

Comments

@jpreynat
Copy link
Contributor

jpreynat commented Jul 3, 2018

Hi,

When running the module locally, I get the following error:
ERROR in Sentry Plugin: RequestError: Error: getaddrinfo ENOTFOUND sentry.io sentry.io:443

After a bit of search, it looks like the request-promise module sometimes fails randomly on the DNS lookup using the Node native API.

I tried passing the family: 4 option in the requests of the local node_modules version of this plugin as described in the linked issue above with no luck. Clearing my DNS cache didn't do the work either.

Did anyone else also encounter this issue?
One solution might be to use another library like axios to perform the requests to the Sentry API.

My current configuration is:
[email protected]
[email protected]
[email protected]
[email protected]

@jpreynat
Copy link
Contributor Author

jpreynat commented Jul 4, 2018

After further investigation, it turns out that this error happens because our app uses the webpack 4 AggressiveSplittingPlugin which ends up generating more than 450 files, including sourcemaps.
Since the plugin currently launches all the requests in parallel, most of them fail, probably because of a dns or sockets saturation.

I'm going to open a PR to throttle launching the request using es6-promise-pool that I was able to test successfully on our project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant