C# ASP.NET Core - SocketException: No such host is known
I tested the API by attempting to access multiple times within 15 minutes (using this URI). For a minute or two it seemed to have DNS issues.
The GetStringAsync
method throws an HttpRequestException
exception if there are issues such as DNS failure (source). You could try catching this exception and implementing a retry mechanism if this exception is thrown.