mranney/node_redis — Issue #155: Auth Error
Author: selead
Created: 2011-11-24 13:04:09+00:00
State: open

Hello,
I have an auth protected redis and try to launch code

>r = require "redis"
>r.createClient()
{ stream:
{ _handle:
{ writeQueueSize: 0,
socket: [Circular],
onread: [Function: onread] },
_pendingWriteReqs: 0,
_flags: 0,
_connectQueueSize: 0,
destroyed: false,
bytesRead: 0,
bytesWritten: 0,
allowHalfOpen: undefined,
_connecting: true,
writable: true,
_events:
{ connect: [Function],
data: [Function],
error: [Function],
close: [Function],
end: [Function],
drain: [Function] } },
options: {},
connection_id: 1,
connected: false,
ready: false,
connections: 0,
should_buffer: false,
command_queue_high_water: 1000,
command_queue_low_water: 0,
max_attempts: null,
command_queue: { tail: [], head: [], offset: 0 },
offline_queue: { tail: [], head: [], offset: 0 },
commands_sent: 0,
connect_timeout: false,
retry_timer: null,
retry_totaltime: 0,
retry_delay: 250,
retry_backoff: 1.7,
attempts: 1,
subscriptions: false,
monitoring: false,
closing: false,
server_info: {},
auth_pass: null,
parser_module: null,
selected_db: null,
port: 6379,
host: '127.0.0.1' }
coffee> Error: Uncaught, unspecified 'error' event.
at RedisClient.emit (events.js:50:15)
at RedisClient.on_info_cmd (/Users/selead/node_modules/redis/index.js:271:21)
at Command.callback (/Users/selead/node_modules/redis/index.js:322:14)
at RedisClient.return_error (/Users/selead/node_modules/redis/index.js:446:25)
at RedisReplyParser. (/Users/selead/node_modules/redis/index.js:256:14)
at RedisReplyParser.emit (events.js:67:17)
at RedisReplyParser.send_error (/Users/selead/node_modules/redis/lib/parser/javascript.js:266:14)
at RedisReplyParser.execute (/Users/selead/node_modules/redis/lib/parser/javascript.js:125:22)
at RedisClient.on_data (/Users/selead/node_modules/redis/index.js:422:27)
at Socket. (/Users/selead/node_modules/redis/index.js:66:14)

node 0.6.2, redis 0.7.1
on previous node (0.5.x) all worked fine

when disabling redis password this code works fine too.