Search code examples
javascriptnode.jsmailgunnodemailer

Caught Unxpected token... in promisifyCall(ctx, fn, ...args) while using maingun in node js


I was using Node mailer to send a mail in my application. Now I changed it into Mail-gun API. After the changes, I got the following error.

function promisifyCall (ctx, fn, ...args) {
                                 ^^^
SyntaxError: Unexpected token ...

How do I resolve it?

I'm using Node v6.8.1.


Solution

  • I resolved this issue by utilizing version, 0.7.11, of Mailgun-js.