Leibale Eidelman
Leibale Eidelman
@PopBot you are reading the v4 documentation and using a v3 client. BTW, this issue is refereeing to v4, see the end of the first comment in the thread. https://github.com/redis/node-redis/tree/v3.1.2
```javascript import { createClient } from 'redis'; import { setTimeout } from 'node:timers/promises'; const client = createClient({ disableOfflineQueue: true }); client.on('error', (err) => console.log('Redis Client Error', err.message)); await client.connect(); console.log('Client...
@sunilgsuthar I've tried to reproduce the error using the code in my last comment, but it seems like it "works" (throw an error) as exptected
@GledsonAfonso have you set `disableOfflineQueue` to `true`?
@GledsonAfonso wanna give #2328 a shot?
@GledsonAfonso if you are testing locally: clone [my fork](https://github.com/leibale/node-redis/tree/fix-2205), checkout to the "fix-2205" branch, run `npm i && npm run build-all` in the repo main folder, and change your package.json...
@GledsonAfonso wanna debug it together (because I'm having a hard time reproducing it)?
@GledsonAfonso I'll be in [this zoom call](https://redis.zoom.us/j/98667993330?pwd=bk4zMExnN3MxY2pJZnpJMTB4dW1SQT09) for the next few hours, hope you'll have time to join :)
@GledsonAfonso thanks for summarizing it :) just one note, I would suggest using the default `reconnectStrategy` instead of passing a custom one ([`retries => Math.min(retries * 50, 500)`](`https://github.com/redis/node-redis/blob/master/docs/client-configuration.md`))
@GledsonAfonso `[email protected]`/`@redis/[email protected]` is on npm :)