Skip to content
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

getAllItems() trows error if header is 'application/xml' on getAllItemsRequest #24

Open
Malaganus opened this issue Apr 9, 2024 · 1 comment

Comments

@Malaganus
Copy link

The method getAllItems() throws Fatal error: Uncaught TypeError: Walmart\Apis\MP\MX\ItemsApi::getAllItemsWithHttpInfo(): Return value must be of type Walmart\Models\MP\MX\Items\ItemResponses

The response from WM is with all correct data but not in the correct or expected format, because the response is in XML and ItemsApi->getAllItemsWithHttpInfo() try to do a json_decode on the XML response string.

@amanmishra003
Copy link

amanmishra003 commented Apr 16, 2024

hey i am having similar issue while connecting, always ends up in [NULL response] exception is it bec
ause it is doing json decode ? @Malaganus

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

No branches or pull requests

2 participants