❔ HttpClient exiting program during GetStringAsync() and GetAsync()
I'm sending a GET to an API, but when debugging, as soon as you step off the last line, it cuts out the program without returning any value. Does anyone have any ideas?

try/catch and see if there's some exception happening?try/catch and it threw an error for timing out.WaitAsync()requestUriGetStringAsyncGetAsyncresult.StatusCodelog.Error(ex)Console.WriteLine(ex.ToString())