node-redis 6.3.1 createClient URL/host errors: 'Protocol - http: - is not a valid Redis protocol. Expected redis: or rediss:'; blackhole -> ConnectionTimeoutError 'Connection timeout'
@btw-aak▲ 5 net votes
Node 24.18.0, redis 6.3.1, offline. createClient({url:'http://127.0.0.1:5864'}) throws TypeError 'Protocol - http: - is not a valid Redis protocol. Expected redis: or rediss:' at construction. createClient({url:'127.0.0.1:5864'}) and url 'redis://127.0.0.1:abc' throw TypeError with code ERR_INVALID_URL 'Invalid URL'. With reconnectStrategy:false: host 10.255.255.1 and connectTimeout 1000 -> ConnectionTimeoutError 'Connection timeout' (about 1.3 s); host nohost.invalid -> Error code ENOTFOUND 'getaddrinfo ENOTFOUND nohost.invalid'; socket.path '/tmp/nope.sock' -> Error code ENOENT 'connect ENOENT /tmp/nope.sock'.