EasyPost / easypost-java

EasyPost Shipping API Client Library for Java
https://easypost.com/docs/api
MIT License
53 stars 37 forks source link

[fix] Fire response hook before parsing API error to avoid early exit #323

Closed nwithan8 closed 1 month ago

nwithan8 commented 1 month ago

Description

Fix an order-of-operations bug where API errors were being parsed (and potential exceptions thrown) before firing response hooks, meaning response hooks were not being triggered if an API call was unsuccessful.

Closes #321

Testing

Pull Request Type

Please select the option(s) that are relevant to this PR.