Skip to content

IOException is thrown if the Response after send email is non 2xx #184

Closed

Description

@sanaulla123

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:

  • sendgrid-java Version: 3.1.0
  • Java Version: 1.7

Activity

  1. added
    status: help wanted
    type: community enhancement
    on Feb 27, 2017
  2. thinkingserious commented on Feb 27, 2017

    @thinkingserious
    Contributor

    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

  3. sanaulla123 commented on Feb 27, 2017

    @sanaulla123
    Author

    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.
    If not , then I can work on the PR for it.

  4. thinkingserious commented on Feb 27, 2017

    @thinkingserious
    Contributor

    @sanaulla123,

    I'm not entirely sure, but I think what you propose is sane. We would greatly appreciate your PR :)

  5. Ronpgo commented on Sep 9, 2017

    @Ronpgo

    It is especially a problem for the delete api which returns 400 if all the elements are already deleted.
    Because the exception does not perserve the headers, it is very easy to hit the rate limit and start getting 429s. i.e. the client has no idea how long to sleep under these conditions.

  6. thinkingserious commented on Sep 11, 2017

    @thinkingserious
    Contributor

    Thanks @Ronpgo,

    I've added your vote to this issue.

  7. thinkingserious commented on Oct 1, 2017

    @thinkingserious
    Contributor

    This will be resolved here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: help wantedtype: community enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions