sp-api-sdk
sp-api-sdk copied to clipboard
TypeError when serializing ItemSearchResults when no pages or refinements are present
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