Skip to content

Order API Method "confirmShipment" throws exception but was successfull #569

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

Conversation

mile-bkoos
Copy link
Contributor

The API Method confirmShipment respond with the HTTP status code 204 = NoContent when a request is successfull:

https://developer-docs.amazon.com/sp-api/docs/orders-api-v0-reference#confirmshipment

This response code throws a exception with the message "Amazon Api didn't respond with Okay, see exception for more details".
I added the response Code to the response codes that would be recognized as successfull request.

With this pull request all requests will be successfull when they have a 204 status code. It could also be changed to only allow 204 if the generic type of the method ExecuteRequestTry is NoContent.

@abuzuhri abuzuhri merged commit 7a1b2d0 into abuzuhri:main May 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants