Cannot catch net.request errors
See original GitHub issueErrors thrown from the net.request are not handled by the callback passed to the download method. When URL cannot be resolved or connection is refused, I’m getting javascript error from the main process (error box).

Just try to invoke download method with http://testnotresolved.com/file.zip URL.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Handle errors in ASP.NET Core | Microsoft Learn
By Tom Dykstra. This article covers common approaches to handling errors in ASP.NET Core web apps. See Handle errors in ASP.
Read more >What's the best way to handle exceptions from Net::HTTP?
For this reason, I recommend sticking to rescue StandardError in most cases. In order to avoid catching too much, move as much as...
Read more >Global Error Handling in ASP.NET Core Web API - Code Maze
NET Core. ... In this article, we are going to handle errors by using a try-catch ... RequestDelegate can't process requests without it....
Read more >Handling errors in ASP.NET Core Web API - DevTrends
Handling errors in an ASP.NET Core Web API. This post looks at the best ways to handle exceptions, validation and other invalid requests...
Read more >How to Catch All Exceptions in C# & Find All Application Errors
Although you can't technically “catch” all exceptions in C#, you can subscribe to .NET Framework events so you can log these exceptions.
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 Free
Top 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

I have accepted the PR, I will update the NPM package now
Having the same issue. Any news yet?