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.

Cannot catch net.request errors

See original GitHub issue

Errors 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).

error-box

Just try to invoke download method with http://testnotresolved.com/file.zip URL.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
danielnietocommented, Jul 4, 2019

I have accepted the PR, I will update the NPM package now

0reactions
jonidelvcommented, Jul 4, 2019

Having the same issue. Any news yet?

Read more comments on GitHub >

github_iconTop 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 >

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