-
-
Notifications
You must be signed in to change notification settings - Fork 202
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
Issue with ErrorList responses #779
Comments
I had the same problem. I then just used ->json() instead of ->dto() |
Yes, that was my first solution. Then I manually updated the file so I can continue using my internal library (that uses ->dto()), but need to redo the changes on each update, so modifying the generator will be a better solution, just that I'm not sure how to do it. The file /src/Seller/ProductPricingV0/Responses/GetOffersResponse.php should look something like this:
|
I can confirm existence of this issue. Can we expect a fix implementation? |
Problem description:
The commit ec9522a fixed an issue with error responses defined as arrays instead of objects, but this change introduced an error in the call to GetListingOffersBatchRequest in ProductPricingV0 API.
In this particular case, The response at GetOffersResponse is an array of errors and not an ErrorList object.
The issue can be reproduced by sending an incorrect SKU or ASIN. I'm not sure yet how to revert the change for this specific response in the generator.
Original Response:
Error:
The text was updated successfully, but these errors were encountered: