Closed younes-io closed 1 month ago
This also happened for us when mocking time. For some reason the error only occurred in ci/cd server which has different timezone. This thread helped to figure out the following workaround:
this.clock = sinon.useFakeTimers({ now: DateTime.now().setZone('UTC').toMillis(), toFake: ['Date'], });
const client = redis.createClient({ socket: { host: hostName, port: 6380, tls: true }, password: azureKey, });
This works for me, I am using azure cache service - Redis version 6
Since Node 23.0, localhost
seems to get translated as ::1
(IPV6), which caused this error for me. Specifying 127.0.0.1
did the trick but it's unfortunate that this happened at all.
I get this error and I don't understand why:
How do I get more details about this:
Environment