C
C#3y ago
Tim

Cant connect to Redis Database

Any idea, why I cant connect to my local Redis database? When I try to connect via redis cli, it works. https://haste.devcord.club/kigopamura.cs
11 Replies
Tvde1
Tvde13y ago
You can look inside the exception and find the exact reason turn catch { into catch (Exception ex) {
Tim
TimOP3y ago
Yeah, I know the exception It just says, that it cant connect to the database
Tvde1
Tvde13y ago
does the ex.InnerException say more?
Tim
TimOP3y ago
Is there a difference between .ToString and .InnerException.ToString?
Tvde1
Tvde13y ago
an exception can have an "inner exception" which is used for example
try
{
CreateUserName();
CreateUserProfile();
}
catch (FormatException ex)
{
throw new CouldNotCreateUserException("User creation failed. Look at InnerException to see what went wrong.", ex);
}
try
{
CreateUserName();
CreateUserProfile();
}
catch (FormatException ex)
{
throw new CouldNotCreateUserException("User creation failed. Look at InnerException to see what went wrong.", ex);
}
basically "what exception caused this exception"
Tim
TimOP3y ago
Looks like there is no Inner Exception But the exception is https://haste.devcord.club/ewazefiqer.cs, if it helps Any idea?
no >> body
no >> body3y ago
Stack Overflow
It was not possible to connect to the redis server(s); to create a ...
I have the following piece of code to connect to azure redis cache. public class CacheConnectionHelper { private static Lazy<ConnectionMultiplexer> lazyConnection = new Lazy<
Tim
TimOP3y ago
Now I timeout every time trying to do something... Any idea, why I time out every time? Btw the error is https://haste.devcord.club/odaxudeqac.md
no >> body
no >> body3y ago
Have you tried to google this exception?
Want results from more Discord servers?
Add your server