{"action":"created","issue":{"url":"https://api.github.com/repos/wavded/winston-mail/issues/18","labels_url":"https://api.github.com/repos/wavded/winston-mail/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/wavded/winston-mail/issues/18/comments","events_url":"https://api.github.com/repos/wavded/winston-mail/issues/18/events","html_url":"https://github.com/wavded/winston-mail/issues/18","id":58798302,"number":18,"title":"Callback was already called","user":{"login":"endquote","id":330010,"avatar_url":"https://avatars.githubusercontent.com/u/330010?v=3","gravatar_id":"","url":"https://api.github.com/users/endquote","html_url":"https://github.com/endquote","followers_url":"https://api.github.com/users/endquote/followers","following_url":"https://api.github.com/users/endquote/following{/other_user}","gists_url":"https://api.github.com/users/endquote/gists{/gist_id}","starred_url":"https://api.github.com/users/endquote/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/endquote/subscriptions","organizations_url":"https://api.github.com/users/endquote/orgs","repos_url":"https://api.github.com/users/endquote/repos","events_url":"https://api.github.com/users/endquote/events{/privacy}","received_events_url":"https://api.github.com/users/endquote/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"wavded","id":26638,"avatar_url":"https://avatars.githubusercontent.com/u/26638?v=3","gravatar_id":"","url":"https://api.github.com/users/wavded","html_url":"https://github.com/wavded","followers_url":"https://api.github.com/users/wavded/followers","following_url":"https://api.github.com/users/wavded/following{/other_user}","gists_url":"https://api.github.com/users/wavded/gists{/gist_id}","starred_url":"https://api.github.com/users/wavded/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wavded/subscriptions","organizations_url":"https://api.github.com/users/wavded/orgs","repos_url":"https://api.github.com/users/wavded/repos","events_url":"https://api.github.com/users/wavded/events{/privacy}","received_events_url":"https://api.github.com/users/wavded/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-02-24T20:23:33Z","updated_at":"2015-03-02T21:40:23Z","closed_at":null,"body":"I'm getting the following callstack when trying to send mail via winston 0.9.0 and winston-mail 0.3.1.\r\n\r\n```\r\nC:\\Stimulant\\Source\\UBE-360\\ampm\\node_modules\\winston\\node_modules\\async\\lib\\async.js:30\r\n            if (called) throw new Error(\"Callback was already called.\");\r\n                              ^\r\nError: Callback was already called.\r\n    at C:\\Stimulant\\Source\\UBE-360\\ampm\\node_modules\\winston\\node_modules\\async\\lib\\async.js:30:31\r\n    at C:\\Stimulant\\Source\\UBE-360\\ampm\\node_modules\\winston\\lib\\winston\\logger.js:187:9\r\n    at Object.callback (C:\\Stimulant\\Source\\UBE-360\\ampm\\node_modules\\winston-mail\\lib\\winston-mail.js:90:5)\r\n    at connect (C:\\Stimulant\\Source\\UBE-360\\ampm\\node_modules\\winston-mail\\node_modules\\emailjs\\smtp\\client.js:69:19)\r\n    at caller (C:\\Stimulant\\Source\\UBE-360\\ampm\\node_modules\\winston-mail\\node_modules\\emailjs\\smtp\\smtp.js:49:14)\r\n    at Socket.response (C:\\Stimulant\\Source\\UBE-360\\ampm\\node_modules\\winston-mail\\node_modules\\emailjs\\smtp\\smtp.js:135:9)\r\n    at Socket.g (events.js:199:16)\r\n    at Socket.emit (events.js:129:20)\r\n    at net.js:923:16\r\n    at process._tickCallback (node.js:355:11)\r\n```\r\n\r\nMy config is basically like this:\r\n\r\n```\r\n{\r\n\thost: \"my.smtp\", \r\n\tssl: false, \r\n\tusername: \"myuser@domain\", \r\n\tfrom: \"myuser@domain\",\r\n\tpassword: \"mypass\",\r\n\tlevel: \"error\", \r\n\tto: \"myuser@domain\" \r\n}\r\n```\r\n\r\nI've had it working successfully in the past, but have recently updated all modules in my project, so I guess something broke. Since the callstack doesn't include any of my code, I'm unsure how to troubleshoot."},"comment":{"url":"https://api.github.com/repos/wavded/winston-mail/issues/comments/76831466","html_url":"https://github.com/wavded/winston-mail/issues/18#issuecomment-76831466","issue_url":"https://api.github.com/repos/wavded/winston-mail/issues/18","id":76831466,"user":{"login":"endquote","id":330010,"avatar_url":"https://avatars.githubusercontent.com/u/330010?v=3","gravatar_id":"","url":"https://api.github.com/users/endquote","html_url":"https://github.com/endquote","followers_url":"https://api.github.com/users/endquote/followers","following_url":"https://api.github.com/users/endquote/following{/other_user}","gists_url":"https://api.github.com/users/endquote/gists{/gist_id}","starred_url":"https://api.github.com/users/endquote/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/endquote/subscriptions","organizations_url":"https://api.github.com/users/endquote/orgs","repos_url":"https://api.github.com/users/endquote/repos","events_url":"https://api.github.com/users/endquote/events{/privacy}","received_events_url":"https://api.github.com/users/endquote/received_events","type":"User","site_admin":false},"created_at":"2015-03-02T21:40:23Z","updated_at":"2015-03-02T21:40:23Z","body":"I did some more tests. Seems like something broke in winston-mail 0.3.1.\r\n\r\nwinston 0.9.0 and winston-mail 0.3.1: fail\r\nwinston 0.8.3 and winston-mail 0.3.1: fail\r\nwinston 0.7.3 and winston-mail 0.3.1: fail\r\nwinston 0.7.3 and winston-mail 0.2.7: success\r\nwinston 0.7.3 and winston-mail 0.3.0: success\r\nwinston 0.9.0 and winston-mail 0.3.0: success\r\n\r\n\r\n"}}