-
Notifications
You must be signed in to change notification settings - Fork 409
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IOException is thrown if the Response after send email is non 2xx #184
Comments
Thank you for the suggestion @sanaulla123, I have added it to our backlog. For this issue to rise in priority, we need others to +1 this issue or a PR. With Best Regards, Elmer |
is there some history behind throwing IOException? because I see a comment there stating the exception is thrown to support other APIs or something like. |
I'm not entirely sure, but I think what you propose is sane. We would greatly appreciate your PR :) |
It is especially a problem for the delete api which returns 400 if all the elements are already deleted. |
Thanks @Ronpgo, I've added your vote to this issue. |
This will be resolved here. |
Issue Summary
IOException is thrown from the api() method of SendGrid (originating from Client#executeApiCall() method) if the Response of send email is non 2xx.
We would like to get back the error in the form of a Response object.
Technical details:
The text was updated successfully, but these errors were encountered: