alexgaribay / sendgrid_elixir

Create and send composable emails with Elixir and SendGrid.
MIT License
86 stars 44 forks source link

rate limiting handling on marketing campaigns #24

Open techgaun opened 6 years ago

techgaun commented 6 years ago

seems like sendgrid has a rate limit in place

Can we handle the rate limiting for marketing campaigns so we don't get errors instead?

Example error:

# result from api call: %{"errors" => [%{"field" => nil, "message" => "too many requests"}]}
** (MatchError) no match of right hand side value: nil
    (sendgrid) lib/sendgrid/marketing_campaigns/contacts/recipients.ex:39: SendGrid.Contacts.Recipients.handle_recipient_result/1