"Invalid integer" error when sending members signup email

Emails are not going out when a new members signups.

Here’s the log error:

{"name":"Log","hostname":"laurosilvacom","pid":3734,"level":50,"err":{"domain":"https://laurosilva.com","code":"parameter_invalid_integer","statusCode":400,"message":"Invalid integer: ","stack":"Error: Invalid integer: \n    at Function.generate (/var/www/ghost/versions/3.0.1/node_modules/stripe/lib/Error.js:49:16)\n    at IncomingMessage.res.once (/var/www/ghost/versions/3.0.1/node_modules/stripe/lib/StripeResource.js:168:39)\n    at Object.onceWrapper (events.js:286:20)\n    at IncomingMessage.emit (events.js:203:15)\n    at IncomingMessage.EventEmitter.emit (domain.js:448:20)\n    at endReadableNT (_stream_readable.js:1145:12)\n    at process._tickCallback (internal/process/next_tick.js:63:19)"},"msg":"Invalid integer: ","time":"2019-10-30T08:48:12.825Z","v":0}

Here’s my config mailer:

  "mail": {
    "transport": "SMTP",
    "options": {
      "service": "Mailgun",
      "host": "smtp.mailgun.org",
      "port": 465,
      "secureConnection": true,
      "auth": {
        "user": "postmaster@email.example.com",
        "pass": "1234567890"
      }
    }
  },

I’m using noreply@laurosilva.com for my system emails and ghost 3.0.1 .

Any idea on how I can debug this?

This is bit embarrassing, but the solution was to restart ghost (ghost restart) for the chances to take effect. For any one else having issues with mail configuring, this part of the documentation was helpful: https://ghost.org/docs/concepts/config/#mail :smile:

1 Like