{"action":"closed","issue":{"url":"https://api.github.com/repos/luin/ioredis/issues/74","labels_url":"https://api.github.com/repos/luin/ioredis/issues/74/labels{/name}","comments_url":"https://api.github.com/repos/luin/ioredis/issues/74/comments","events_url":"https://api.github.com/repos/luin/ioredis/issues/74/events","html_url":"https://github.com/luin/ioredis/issues/74","id":88638257,"number":74,"title":"ReplyError: ERR invalid DB index ","user":{"login":"kimmobrunfeldt","id":1232405,"avatar_url":"https://avatars.githubusercontent.com/u/1232405?v=3","gravatar_id":"","url":"https://api.github.com/users/kimmobrunfeldt","html_url":"https://github.com/kimmobrunfeldt","followers_url":"https://api.github.com/users/kimmobrunfeldt/followers","following_url":"https://api.github.com/users/kimmobrunfeldt/following{/other_user}","gists_url":"https://api.github.com/users/kimmobrunfeldt/gists{/gist_id}","starred_url":"https://api.github.com/users/kimmobrunfeldt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kimmobrunfeldt/subscriptions","organizations_url":"https://api.github.com/users/kimmobrunfeldt/orgs","repos_url":"https://api.github.com/users/kimmobrunfeldt/repos","events_url":"https://api.github.com/users/kimmobrunfeldt/events{/privacy}","received_events_url":"https://api.github.com/users/kimmobrunfeldt/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-06-16T06:53:47Z","updated_at":"2015-06-16T14:18:55Z","closed_at":"2015-06-16T14:18:55Z","body":"When using ioredis in Heroku using RedisToGo add-on, I get this error:\r\n\r\n```\r\nUnhandled rejection ReplyError: ERR invalid DB index \r\n    at ReplyParser._parseResult (/app/node_modules/ioredis/lib/parsers/javascript.js:56:14) \r\n    at ReplyParser.execute (/app/node_modules/ioredis/lib/parsers/javascript.js:174:20) \r\n    at Socket.<anonymous> (/app/node_modules/ioredis/lib/redis/event_handler.js:88:22) \r\n    at Socket.emit (events.js:107:17) \r\n    at readableAddChunk (_stream_readable.js:163:16) \r\n    at Socket.Readable.push (_stream_readable.js:126:10) \r\n    at TCP.onread (net.js:538:20) \r\n```\r\n\r\nEverything works fine on my local machine(OS X) and local redis. I'm testing this with [free plan](https://addons.heroku.com/redistogo#nano) in RedisToGo. \r\n\r\nI'm initializing ioredis(version 1.5.0) like this:\r\n```javascript\r\n        var redis = new Redis(process.env.REDIS_URL, {\r\n            retryStrategy: function(times) {\r\n                // Make reconnecting a bit more relaxed compared to default\r\n                var delay = Math.min(times * 100, 4000);\r\n                return delay;\r\n            }\r\n        });\r\n```\r\n\r\n* REDIS_URL in heroku is in format: `redis://redistogo:<secret>@<secret>.redistogo.com:<port>/`.\r\n* REDIS_URL in local is: `redis://127.0.0.1:6379`\r\n\r\nDo you have ideas of how to fix this? Redis works apparently correctly but my logs fill up with those exceptions and in general I'd like to get this resolved."}}