sp-api-sdk icon indicating copy to clipboard operation
sp-api-sdk copied to clipboard

TypeError when serializing ItemSearchResults when no pages or refinements are present

Open sw-Oldeu opened this issue 3 years ago • 0 comments

Version: 4.0.8 What causes the error: After calling the CatalogItems::searchCatalogItems() method call ItemSearchResults::jsonSerialize(). The method ItemSearchResults::jsonSerialize() expects an Object of type Pagination but instead null is returned.

I think just make the response optional would save the problem. But I don't know what impact this change may have and which ResponseResults may have the same error.

Regards

sw-Oldeu avatar Aug 30 '22 15:08 sw-Oldeu