© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
13 replies
İrşat

HttpRequestException Error Handling

It says the target actively refused it. It's because I didn't launch my API. Therefore it cannot request something and gives me this error.

If we put try catch aside for a minute, is there a nice way to just skip these codes if it refuses? I will send empty lists to the client and just say "Sorry, we are having some technical issues." or something.
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

HttpRequestException:An error occurred while sending the request. WebException
C#CC# / help
2y ago
❔ MVC Error Handling
C#CC# / help
3y ago
✅ Error handling in C#
C#CC# / help
13mo ago
Tips on error handling
C#CC# / help
3y ago