{"action":"closed","issue":{"url":"https://api.github.com/repos/adonisjs/adonis-mail/issues/4","repository_url":"https://api.github.com/repos/adonisjs/adonis-mail","labels_url":"https://api.github.com/repos/adonisjs/adonis-mail/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/adonisjs/adonis-mail/issues/4/comments","events_url":"https://api.github.com/repos/adonisjs/adonis-mail/issues/4/events","html_url":"https://github.com/adonisjs/adonis-mail/issues/4","id":175287832,"number":4,"title":"[MailGun] GotError: options.body must be a ReadableStream, string or Buffer","user":{"login":"RomainLanz","id":2793951,"avatar_url":"https://avatars.githubusercontent.com/u/2793951?v=3","gravatar_id":"","url":"https://api.github.com/users/RomainLanz","html_url":"https://github.com/RomainLanz","followers_url":"https://api.github.com/users/RomainLanz/followers","following_url":"https://api.github.com/users/RomainLanz/following{/other_user}","gists_url":"https://api.github.com/users/RomainLanz/gists{/gist_id}","starred_url":"https://api.github.com/users/RomainLanz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RomainLanz/subscriptions","organizations_url":"https://api.github.com/users/RomainLanz/orgs","repos_url":"https://api.github.com/users/RomainLanz/repos","events_url":"https://api.github.com/users/RomainLanz/events{/privacy}","received_events_url":"https://api.github.com/users/RomainLanz/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-09-06T16:09:53Z","updated_at":"2016-09-07T07:31:58Z","closed_at":"2016-09-07T07:31:58Z","body":"**adonis-mail version**: `git#develop`\r\n**Driver used**: `mailgun`\r\n**Node.js version**: v6.4.0\r\n**npm version**: v3.10.3\r\n\r\n\r\nHey !\r\n\r\nI got an error from `got` when I try to send a email with the `mailgun` driver.\r\n\r\n<details><summary>Exception</summary>\r\n```\r\n{ GotError: options.body must be a ReadableStream, string or Buffer\r\n    at got (/Users/romainlanz/workspace/qualitas-helvetica.ch/node_modules/got/index.js:81:10)\r\n    at Function.got.(anonymous function) [as post] (/Users/romainlanz/workspace/qualitas-helvetica.ch/node_modules/got/index.js:272:10)\r\n    at MailGunTransport.send (/Users/romainlanz/workspace/qualitas-helvetica.ch/node_modules/adonis-mail-provider/src/Mail/Drivers/MailGun/transport.js:75:9)\r\n    at Nodemailer.<anonymous> (/Users/romainlanz/workspace/qualitas-helvetica.ch/node_modules/nodemailer/lib/nodemailer.js:324:30)\r\n    at Nodemailer._processPlugins (/Users/romainlanz/workspace/qualitas-helvetica.ch/node_modules/nodemailer/lib/nodemailer.js:352:16)\r\n    at Nodemailer.<anonymous> (/Users/romainlanz/workspace/qualitas-helvetica.ch/node_modules/nodemailer/lib/nodemailer.js:318:14)\r\n    at Nodemailer._processPlugins (/Users/romainlanz/workspace/qualitas-helvetica.ch/node_modules/nodemailer/lib/nodemailer.js:352:16)\r\n    at Nodemailer.sendMail (/Users/romainlanz/workspace/qualitas-helvetica.ch/node_modules/nodemailer/lib/nodemailer.js:280:10)\r\n    at MailGun.send (/Users/romainlanz/workspace/qualitas-helvetica.ch/node_modules/adonis-mail-provider/src/Mail/Drivers/BaseDriver.js:60:22)\r\n    at Mail.send (/Users/romainlanz/workspace/qualitas-helvetica.ch/node_modules/adonis-mail-provider/src/Mail/Mail.js:129:30)\r\n    at next (native)\r\n    at onFulfilled (/Users/romainlanz/workspace/qualitas-helvetica.ch/node_modules/co/index.js:65:19)\r\n    at process._tickDomainCallback (internal/process/next_tick.js:129:7) nested: undefined, status: 500 }\r\n```\r\n</details>\r\n\r\nThe error seems to be thrown when we are calling `got.post(...)` on the MailGun API. It's [at the line 75 of the MailGun driver](https://github.com/adonisjs/adonis-mail/blob/develop/src/Mail/Drivers/MailGun/transport.js#L75)"}}
{"actor":{"display_login":"RomainLanz"}}