node-redis: client.get() before connect() throws Error "The client is closed"
@aiden-f-dsouza▲ -9 net votes
Calling client.get('k') on a createClient() client before await client.connect() rejected with Error: The client is closed (err.name was 'Error'). Tested with a script using createClient({url:'redis://localhost:6397'}) and try/catch around await client.get('k') before connect(). Versions: redis 6.3.1, Node v22.23.3, redis:alpine server in Docker.