{"action":"created","issue":{"url":"https://api.github.com/repos/eleith/emailjs/issues/205","repository_url":"https://api.github.com/repos/eleith/emailjs","labels_url":"https://api.github.com/repos/eleith/emailjs/issues/205/labels{/name}","comments_url":"https://api.github.com/repos/eleith/emailjs/issues/205/comments","events_url":"https://api.github.com/repos/eleith/emailjs/issues/205/events","html_url":"https://github.com/eleith/emailjs/issues/205","id":262843553,"node_id":"MDU6SXNzdWUyNjI4NDM1NTM=","number":205,"title":"Error: write after end","user":{"login":"franalt","id":20582332,"node_id":"MDQ6VXNlcjIwNTgyMzMy","avatar_url":"https://avatars1.githubusercontent.com/u/20582332?v=4","gravatar_id":"","url":"https://api.github.com/users/franalt","html_url":"https://github.com/franalt","followers_url":"https://api.github.com/users/franalt/followers","following_url":"https://api.github.com/users/franalt/following{/other_user}","gists_url":"https://api.github.com/users/franalt/gists{/gist_id}","starred_url":"https://api.github.com/users/franalt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/franalt/subscriptions","organizations_url":"https://api.github.com/users/franalt/orgs","repos_url":"https://api.github.com/users/franalt/repos","events_url":"https://api.github.com/users/franalt/events{/privacy}","received_events_url":"https://api.github.com/users/franalt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2017-10-04T16:04:33Z","updated_at":"2018-08-21T22:09:30Z","closed_at":null,"author_association":"NONE","body":"Hello everyone.\r\n\r\nI'am getting this error, and I can´t find anywhere what it means. I have a node app that sends an array of emails and at some point this error ocurrs. Does anyone know what does it mean?\r\n\r\n```\r\nError: write after end\r\n    at writeAfterEnd (_stream_writable.js:236:12)\r\n    at TLSSocket.Writable.write (_stream_writable.js:287:5)\r\n    at TLSSocket.Socket.write (net.js:697:40)\r\n    at SMTP.send (/app/node_modules/emailjs/smtp/smtp.js:186:17)\r\n    at SMTP.command (/app/node_modules/emailjs/smtp/smtp.js:212:10)\r\n    at SMTP.rset (/app/node_modules/emailjs/smtp/smtp.js:364:10)\r\n    at check (/app/node_modules/emailjs/smtp/client.js:156:23)\r\n    at caller (/app/node_modules/emailjs/smtp/smtp.js:48:14)\r\n    at response (/app/node_modules/emailjs/smtp/smtp.js:198:9)\r\n    at caller (/app/node_modules/emailjs/smtp/smtp.js:48:14)\r\n```\r\n\r\nThis is my code:\r\n\r\n```\r\nserver.send({\r\n\ttext:    send_array[idx].client_email, \r\n\tfrom:    sender_email, \r\n\tto:      send_array[idx].client_to,\r\n\tcc:      '',\r\n\tbcc:     \"server@adms.com.ar\",\r\n\tsubject: send_array[idx].client_subject + ' SID:' + idx,\r\n\tattachment: attachments\r\n}, function(err, message) { \r\n        //send the next email if there is any\r\n});\t \r\n```\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/eleith/emailjs/issues/comments/414838211","html_url":"https://github.com/eleith/emailjs/issues/205#issuecomment-414838211","issue_url":"https://api.github.com/repos/eleith/emailjs/issues/205","id":414838211,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNDgzODIxMQ==","user":{"login":"tjrhodes","id":1409728,"node_id":"MDQ6VXNlcjE0MDk3Mjg=","avatar_url":"https://avatars2.githubusercontent.com/u/1409728?v=4","gravatar_id":"","url":"https://api.github.com/users/tjrhodes","html_url":"https://github.com/tjrhodes","followers_url":"https://api.github.com/users/tjrhodes/followers","following_url":"https://api.github.com/users/tjrhodes/following{/other_user}","gists_url":"https://api.github.com/users/tjrhodes/gists{/gist_id}","starred_url":"https://api.github.com/users/tjrhodes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tjrhodes/subscriptions","organizations_url":"https://api.github.com/users/tjrhodes/orgs","repos_url":"https://api.github.com/users/tjrhodes/repos","events_url":"https://api.github.com/users/tjrhodes/events{/privacy}","received_events_url":"https://api.github.com/users/tjrhodes/received_events","type":"User","site_admin":false},"created_at":"2018-08-21T22:09:30Z","updated_at":"2018-08-21T22:09:30Z","author_association":"NONE","body":"Getting masses of these errors, out of 170 mails, only 3 just got sent, rest were all \"Error: connection encountered an error (write after end)\" or \"Error: write after end\". Node 8.11.3\r\n, getting them to non gmail and gmail smtp servers. "}}
{"actor":{"display_login":"tjrhodes"}}