StackExchange / StackExchange.Redis

General purpose redis client
https://stackexchange.github.io/StackExchange.Redis/
Other
5.9k stars 1.51k forks source link

RedisTimeoutException when connecting from web app for containers hosting net8 api #2802

Open roofiq opened 2 weeks ago

roofiq commented 2 weeks ago

Hello,

I have quite a weird scenario, that I'm stuck. Not sure if this issue is related with using docker or NET8.

I'm getting below error: image

Server endpoint is some private ip, that I'm not correlating with anything, it is not assosiated with my Azure Cache For Redis cluster. My redis does not have any network restrictions, but still i'm getting this timeout.

Do you guys have any ideas what shall I check.

NickCraver commented 3 hours ago

Can you please try this on the latest version? Importantly we've added some metrics to the exception that indicate if we've ever connected to the endpoint or if we're stuck in the initial never-connected state. That'll tell us readily which of the 2 this is.