{"action":"opened","issue":{"url":"https://api.github.com/repos/evantahler/actionhero/issues/917","repository_url":"https://api.github.com/repos/evantahler/actionhero","labels_url":"https://api.github.com/repos/evantahler/actionhero/issues/917/labels{/name}","comments_url":"https://api.github.com/repos/evantahler/actionhero/issues/917/comments","events_url":"https://api.github.com/repos/evantahler/actionhero/issues/917/events","html_url":"https://github.com/evantahler/actionhero/issues/917","id":170070412,"number":917,"title":"redis initializers Error: Callback was already called","user":{"login":"tienne","id":9584768,"avatar_url":"https://avatars.githubusercontent.com/u/9584768?v=3","gravatar_id":"","url":"https://api.github.com/users/tienne","html_url":"https://github.com/tienne","followers_url":"https://api.github.com/users/tienne/followers","following_url":"https://api.github.com/users/tienne/following{/other_user}","gists_url":"https://api.github.com/users/tienne/gists{/gist_id}","starred_url":"https://api.github.com/users/tienne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tienne/subscriptions","organizations_url":"https://api.github.com/users/tienne/orgs","repos_url":"https://api.github.com/users/tienne/repos","events_url":"https://api.github.com/users/tienne/events{/privacy}","received_events_url":"https://api.github.com/users/tienne/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-09T02:51:33Z","updated_at":"2016-08-09T02:51:33Z","closed_at":null,"body":"Error: Callback was already called\r\n\r\n- ActionHero Version: `15.0.0`\r\n- Node.js Version: `4.4.5`\r\n- Operating System `(Windows 10)`\r\n\r\nSometimes after my Actionhero server start error this exit node\r\n\r\nError: Callback was already called. at myproject\\\\node_modules\\\\actionhero\\\\node_modules\\\\async\\\\dist\\\\async.js:844:36\r\nat myproject\\\\node_modules\\\\actionhero\\\\node_modules\\\\async\\\\dist\\\\async.js:3676:17\r\nat myproject\\\\node_modules\\\\actionhero\\\\node_modules\\\\async\\\\dist\\\\async.js:339:31\r\nat Redis.<anonymous> (myproject\\\\node_modules\\\\actionhero\\\\initializers\\\\redis.js:32:15\r\n    at emitOne (events.js:82:20\r\n    at Redis.emit (events.js:169:7\r\n    at nextTickCallbackWith0Args (node.js:420:9\r\n    at process._tickDomainCallback (node.js:390:13)\r\n\r\nHow can this problem, ask what advice\r\n\r\nhero my  config/redis.js\r\n\r\n```\r\nvar host     = process.env.REDIS_HOST;\r\nvar port     = process.env.REDIS_PORT;\r\nvar db = process.env.REDIS_DB;\r\nvar password = process.env.REDIS_PASS;\r\n\r\nexports['default'] = {\r\n  redis: function(api){\r\n    \r\n    if(process.env.FAKEREDIS === 'false' || process.env.REDIS_HOST !== undefined){\r\n      return {\r\n        '_toExpand': false,\r\n        client: {\r\n          konstructor: require('ioredis'),\r\n          args: [{ port: port, host: host, password: password, db: db }],\r\n          buildNew: true\r\n        },\r\n        subscriber: {\r\n          konstructor: require('ioredis'),\r\n          args: [{ port: port, host: host, password: password, db: db }],\r\n          buildNew: true\r\n        },\r\n        tasks: {\r\n          konstructor: require('ioredis'),\r\n          args: [{ port: port, host: host, password: password, db: db }],\r\n          buildNew: true\r\n        }\r\n      };\r\n    }else {\r\n      return {\r\n        '_toExpand': false,\r\n        client: {\r\n          konstructor: require('fakeredis').createClient,\r\n          args: [port, host, {fast: true}],\r\n          buildNew: false\r\n        },\r\n        subscriber: {\r\n          konstructor: require('fakeredis').createClient,\r\n          args: [port, host, {fast: true}],\r\n          buildNew: false\r\n        },\r\n        tasks: {\r\n          konstructor: require('fakeredis').createClient,\r\n          args: [port, host, {fast: true}],\r\n          buildNew: false\r\n        }\r\n      };\r\n    }\r\n  }\r\n};\r\n```"}}
{"actor":{"display_login":"tienne"}}