devhl
devhl
CC#
Created by devhl on 3/9/2024 in #help
Slow HttpClient responses
!resolved
31 replies
CC#
Created by devhl on 3/9/2024 in #help
Slow HttpClient responses
The problem was not the api calls. After the call is made, there is a table that gets updated full of aggregate statistics. Updating the aggregate data was too slow. I removed that bit of code and it is back to working again. Thanks for the help.
31 replies
CC#
Created by devhl on 3/9/2024 in #help
Slow HttpClient responses
I guess that would answer why the timeouts don't always trigger.
31 replies
CC#
Created by devhl on 3/9/2024 in #help
Slow HttpClient responses
I think I will try putting a timeout on the client itself to see if I can mitigate this.
31 replies
CC#
Created by devhl on 3/9/2024 in #help
Slow HttpClient responses
Also, while these slow downs happen, my cpu is 100%
31 replies
CC#
Created by devhl on 3/9/2024 in #help
Slow HttpClient responses
If the server were too busy, I'd still expect to see tons of errors. Instead, I see my request time creep up, and somtimes hault. I do get some of the Polly timeout exceptions, but many requests are OK but taking longer than I want to wait.,
31 replies
CC#
Created by devhl on 3/9/2024 in #help
Slow HttpClient responses
I have retry but there is no backoff.
31 replies
CC#
Created by devhl on 3/9/2024 in #help
Slow HttpClient responses
Looks like I may be getting spurious retransmissions when the reponse times start going up
31 replies
CC#
Created by devhl on 3/9/2024 in #help
Slow HttpClient responses
Not mine, it is the clash of clans api.
31 replies
CC#
Created by devhl on 3/9/2024 in #help
Slow HttpClient responses
I don't think that helps. The timeout should throw on slow requests. I see some timing out, but I also see requests going far longer than the timeout.
31 replies
CC#
Created by devhl on 3/9/2024 in #help
Slow HttpClient responses
It is the SendAsync that is taking the time.
31 replies
CC#
Created by devhl on 3/9/2024 in #help
Slow HttpClient responses
I've now flushed my dns cache and restarted the modem, router, and computer, but it made no effect.
31 replies
CC#
Created by devhl on 3/9/2024 in #help
Slow HttpClient responses
The only thing I can think is that maybe the timeout wont apply to the HttpContent#ReadAsStringAsync
31 replies
CC#
Created by devhl on 6/3/2023 in #help
❔ Get required value from IConfiguration
I'm reading on SO GetValue just doesn't work on complex types. So now just trying to see if there is anything for Get but not returning nullable.
5 replies
CC#
Created by devhl on 5/27/2023 in #help
✅ NotNullWhen not working as expected
Thanks
5 replies
CC#
Created by devhl on 5/27/2023 in #help
✅ NotNullWhen not working as expected
ohhh...it works in another case because I return if false. I guess that works but this doesn't.
5 replies
CC#
Created by devhl on 3/13/2023 in #help
❔ Utf8JsonReader.GetString exceptions
oh there are try versions of these commands, nice
9 replies
CC#
Created by devhl on 3/13/2023 in #help
❔ Utf8JsonReader.GetString exceptions
oh...
9 replies
CC#
Created by devhl on 3/13/2023 in #help
❔ Utf8JsonReader.GetString exceptions
The last word.
9 replies
CC#
Created by devhl on 3/13/2023 in #help
❔ Utf8JsonReader.GetString exceptions
9 replies