luckyframework / carbon_sendgrid_adapter

MIT License
1 stars 2 forks source link

Sendgrid does not accept an empty attachment array #20

Closed snadon closed 4 months ago

snadon commented 4 months ago
Unhandled exception in spawn: {"errors":[{"message":"The attachments array, when used, must have at least one attachment.","field":"attachments","help":"http://sendgrid.com/docs/API_Reference/Web_API_v3/Mail/errors.html#message.attachments"}]} (Carbon::SendGridResponseFailedError)
from /tmp/build_646ac8e2/lib/carbon_sendgrid_adapter/src/carbon_sendgrid_adapter.cr:33:11 in 'deliver'
from /tmp/build_646ac8e2/.heroku/crystal/share/crystal/src/fiber.cr:141:11 in 'run'
from ???