Open adityapatadia opened 3 years ago
Thanks for reporting. Will take a look at this next week.
It would be helpful if this is resolved. We are seeing crashes in production env.
Let me add something I caught in production as well:
https://runkit.com/601c1f2160893700138f0ad4/601c1f3904c5df001a492012
const needle = require('needle');
const url = 'https://www.elwis.de/DE/dynamisch/gewaesserkunde/wasserstaende/wasserstaendeUebersichtGrafik.html.php?gw=RHEIN';
needle.head(url, (error) => {
console.log('This just crashed with no error', error);
});
Please see below code. Error produced by it is not possible to catch and it crashes node.
There should be some way to catch such protocol related errors as they can be huge issue if not caught in production.