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

Walmart Canada Response Errors #14

Open
quocvu88 opened this issue Oct 6, 2023 · 0 comments
Open

Walmart Canada Response Errors #14

quocvu88 opened this issue Oct 6, 2023 · 0 comments

Comments

@quocvu88
Copy link

quocvu88 commented Oct 6, 2023

Hello,
When I use SDK to call getOrders or getItems, it reponse fatal error like this:

Fatal error: Uncaught TypeError: Walmart\Apis\MP\CA\OrdersApi::getAllOrdersWithHttpInfo(): Return value must be of type Walmart\Models\MP\CA\Orders\WFSOrdersListType, null returned in /var/www/vhosts/svc-walmart/public_html/vendor/highsidelabs/walmart-api/src/Apis/MP/CA/OrdersApi.php:814 Stack trace: #0 /var/www/vhosts/svc-walmart/public_html/vendor/highsidelabs/walmart-api/src/Apis/MP/CA/OrdersApi.php(721): Walmart\Apis\MP\CA\OrdersApi->getAllOrdersWithHttpInfo() #1 /var/www/vhosts/svc-walmart/public_html/orders.php(44): Walmart\Apis\MP\CA\OrdersApi->getAllOrders() #2 {main} thrown in /var/www/vhosts/svc-walmart/public_html/vendor/highsidelabs/walmart-api/src/Apis/MP/CA/OrdersApi.php on line 814

The sames type of error with getItems
Fatal error: Uncaught TypeError: Walmart\Apis\MP\CA\ItemsApi::getAllItemsWithHttpInfo(): Return value must be of type Walmart\Models\MP\CA\Items\ItemResponses, null returned in /var/www/vhosts/svc-walmart/public_html/vendor/highsidelabs/walmart-api/src/Apis/MP/CA/ItemsApi.php:490 Stack trace: #0 /var/www/vhosts/svc-walmart/public_html/vendor/highsidelabs/walmart-api/src/Apis/MP/CA/ItemsApi.php(409): Walmart\Apis\MP\CA\ItemsApi->getAllItemsWithHttpInfo() #1 /var/www/vhosts/svc-walmart/public_html/items.php(44): Walmart\Apis\MP\CA\ItemsApi->getAllItems() #2 {main} thrown in /var/www/vhosts/svc-walmart/public_html/vendor/highsidelabs/walmart-api/src/Apis/MP/CA/ItemsApi.php on line 490

But in debug file, API reponse was successful
[2023-10-06 15:49:18]: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><ns3:list xmlns:ns2="http://walmart.com/mp/orders" xmlns:ns3="http://walmart.com/mp/v3/orders" xmlns:ns4="http://walmart.com/"><ns3:meta><ns3:totalCount>3</ns3:totalCount><ns3:limit>10</ns3:limit></ns3:meta><ns3:elements><ns3:order><ns3:purchaseOrderId>Y12345678</ns3:purchaseOrderId><ns3:customerOrderId>4540000000000</ns3:customerOrderId>

OrderID edited.

Please help me to check this.
Thank you!

@quocvu88 quocvu88 changed the title Walmart Canada Report Errors Walmart Canada Response Errors Oct 6, 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

No branches or pull requests

1 participant