Open pekeler opened 3 months ago
1.1.8
Darwin 23.4.0 arm64 arm
import formData from 'form-data'; import Mailgun from 'mailgun.js'; const mailgun = new Mailgun(formData); const mg = mailgun.client({ username: 'api', key: process.env.MAILGUN_API_KEY }); const result = await mg.messages.create(process.env.MAILGUN_DOMAIN, { from: process.env.MAILGUN_SENDER, to: ['info@mail.com'], subject: 'testing', text: '123' }); console.log('mail sending result', result);
mail sending result { status: 200, id: '<....mailgun.org>', message: 'Queued. Thank you.' }
2319 | /*! For license information please see mailgun.node.js.LICENSE.txt */ 2320 | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.mailgun=t():e.mailgun=t()}(this,(()=>(()=>{var e={9118:(e,t,n)=>{e.exports={parallel:n(9162),serial:n(1357),serialOrdered:n(9087)}},7651:e=>{function t(e){"function"==typeof this.jobs[e]&&this.jobs[e]()}e.exports=function(e){Object.keys(e.jobs).forEach(t.bind(e)),e.jobs={}}},5912:(e,t,n)=>{var a=n(9265);e.exports=function(e){var t=!1;return a((function(){t=!0})),function(n,i){t?e(n,i):a((function(){e(n,i)}))}}},9265:e=>{e.exports=function(e){var t="function"==typeof setImmediate?setImmediate:"object"==typeof process&&"function"==typeof process.nextTick?process.nextTick:null;t?t(e):setTimeout(e,0)}},7594:(e,t,n)=>{var a=n(5912),i=n(7651);e.exports=function(e,t,n,o){var s=n.keyedList?n.keyedList[n.index]:n.index;n.jobs[s]=function(e,t,n,i){var o;o=2==e.length?e(n,a(i)):e(n,t,a(i));return o}(t,s,e[s],(function(e,t){s in n.jobs&&(delete n.jobs[s],e | ... truncated error: Bad Request at /tmp/mtest/node_modules/mailgun.js/mailgun.node.js:2320:149 Bun v1.1.8 (macOS arm64)
Looks like mailgun.js is using Axios for networking, so might be related to other bun issues with Axios.
This issue is stale and may be closed due to inactivity. If you're still running into this, please leave a comment.
this is still an issue. Any update on this
What version of Bun is running?
1.1.8
What platform is your computer?
Darwin 23.4.0 arm64 arm
What steps can reproduce the bug?
What is the expected behavior?
What do you see instead?
Additional information
Looks like mailgun.js is using Axios for networking, so might be related to other bun issues with Axios.