✅ HTTPClient's GetAsync errors and doesn't get caught
In this code
To test that, I tried getting it to access a URL that doesn't work.
Adding:
How fix???:kekw:
client is a Httpclient which is supposed to timeout after a delay.To test that, I tried getting it to access a URL that doesn't work.
client.GetAsync( ).Result throws a TaskCancelledException , which doesn't get caughtAdding:
This function is supposed to be used in multiple threads.
Maybe having the thread error out and shutdown serve as a "catch" block of sorts can work?
However that is not optimal
How fix???:kekw: