Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I have found this for two scenario.
1. Wrong API Secret Key (not empty)
2. If Maximum credits exceeded for an account
-> For the above scenario, it throws 500 error with the Guzzle exception having the message of "400 Bad Request", it must trhow 400 and also the site must not to break down, isn't it?
Comment | File | Size | Author |
---|---|---|---|
#2 | sendgrid_integration-2992765-2.patch | 1.12 KB | baikho |
Comments
Comment #2
baikhoSee patch, fixing the uncaught exceptions. (tested on
8.x-1.x
)Comment #4
attheshow CreditAttribution: attheshow at Richland Library commentedI ran into this same issue. Nice patch to catch the exception!
Comment #5
Perignon CreditAttribution: Perignon commentedComment #7
Perignon CreditAttribution: Perignon commentedThanks for the patch! Committed to Dev.
Comment #8
Perignon CreditAttribution: Perignon commentedComment #10
rajandro CreditAttribution: rajandro as a volunteer and at Srijan | A Material+ Company for Drupal India Association commented