cancel
Showing results for 
Search instead for 
Did you mean: 

fatal error get abandoned cart from rest api

fatal error get abandoned cart from rest api

I want to get abandoned cart with Rest API, here is the url :

http://www.domain.com/rest/V1/carts/search?searchCriteria[pageSize]=200&searchCriteria[filter_groups][0][filters][0][field]=updated_at&searchCriteria[filter_groups][0][filters][0][value]=2019-09-03&searchCriteria[filter_groups][0][filters][0][condition_type]=gteq&searchCriteria[sortOrders][0][field]=updated_at&searchCriteria[sortOrders][0][direction]=ASC&searchCriteria[currentPage]=3

here is the postman screenshot

Screenshot_156.png


but im getting this error :

PHP Fatal error:  Uncaught Error: Call to a member function getProduct() on boolean in /www/magento2/vendor/magento/module-configurable-product/Plugin/SalesRule/Model/Rule/Condition/Product.php:56
Stack trace:
#0 /www/magento2/vendor/magento/module-configurable-product/Plugin/SalesRule/Model/Rule/Condition/Product.php(27): Magento\ConfigurableProduct\Plugin\SalesRule\Model\Rule\Condition\Product->getProductToValidate(Object(Magento\SalesRule\Model\Rule\Condition\Product\Interceptor), Object(Magento\Quote\Model\Quote\Item\Interceptor))
#1 /www/magento2/vendor/magento/framework/Interception/Interceptor.php(121): Magento\ConfigurableProduct\Plugin\SalesRule\Model\Rule\Condition\Product->beforeValidate(Object(Magento\SalesRule\Model\Rule\Condition\Product\Interceptor), Object(Magento\Quote\Model\Quote\Item\Interceptor))
#2 /www/magento2/vendor/magento/framework/Interception/Interceptor.php(153): Magento\SalesRule\Model\Rule\Condition\Product\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Q in /www/magento2/vendor/magento/module-configurable-product/Plugin/SalesRule/Model/Rule/Condition/Product.php:56

 

How can I trace and fix this issue?

 

FYI im using magento 2.2.9 in nginx environment.

 

thank you in advance