{"action":"created","issue":{"url":"https://api.github.com/repos/sequelize/sequelize/issues/4838","labels_url":"https://api.github.com/repos/sequelize/sequelize/issues/4838/labels{/name}","comments_url":"https://api.github.com/repos/sequelize/sequelize/issues/4838/comments","events_url":"https://api.github.com/repos/sequelize/sequelize/issues/4838/events","html_url":"https://github.com/sequelize/sequelize/issues/4838","id":116294502,"number":4838,"title":"getConnection fails with replication","user":{"login":"anibali","id":226707,"avatar_url":"https://avatars.githubusercontent.com/u/226707?v=3","gravatar_id":"","url":"https://api.github.com/users/anibali","html_url":"https://github.com/anibali","followers_url":"https://api.github.com/users/anibali/followers","following_url":"https://api.github.com/users/anibali/following{/other_user}","gists_url":"https://api.github.com/users/anibali/gists{/gist_id}","starred_url":"https://api.github.com/users/anibali/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anibali/subscriptions","organizations_url":"https://api.github.com/users/anibali/orgs","repos_url":"https://api.github.com/users/anibali/repos","events_url":"https://api.github.com/users/anibali/events{/privacy}","received_events_url":"https://api.github.com/users/anibali/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/sequelize/sequelize/labels/bug","name":"bug","color":"d7e102"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-11-11T09:17:27Z","updated_at":"2015-12-02T13:36:21Z","closed_at":null,"body":"When using replication (as in https://github.com/sequelize/sequelize/issues/4201), there is still some code that tries to use global config and this causes an ECONNREFUSED. The line that fails is https://github.com/sequelize/sequelize/blob/2ab9439de52fefdcf4579c25fdf016b259676518/lib/dialects/abstract/connection-manager.js#L212"},"comment":{"url":"https://api.github.com/repos/sequelize/sequelize/issues/comments/161291282","html_url":"https://github.com/sequelize/sequelize/issues/4838#issuecomment-161291282","issue_url":"https://api.github.com/repos/sequelize/sequelize/issues/4838","id":161291282,"user":{"login":"mickhansen","id":699049,"avatar_url":"https://avatars.githubusercontent.com/u/699049?v=3","gravatar_id":"","url":"https://api.github.com/users/mickhansen","html_url":"https://github.com/mickhansen","followers_url":"https://api.github.com/users/mickhansen/followers","following_url":"https://api.github.com/users/mickhansen/following{/other_user}","gists_url":"https://api.github.com/users/mickhansen/gists{/gist_id}","starred_url":"https://api.github.com/users/mickhansen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mickhansen/subscriptions","organizations_url":"https://api.github.com/users/mickhansen/orgs","repos_url":"https://api.github.com/users/mickhansen/repos","events_url":"https://api.github.com/users/mickhansen/events{/privacy}","received_events_url":"https://api.github.com/users/mickhansen/received_events","type":"User","site_admin":false},"created_at":"2015-12-02T13:36:21Z","updated_at":"2015-12-02T13:36:21Z","body":"True, that should catch a few cases. PR welcome."}}