Skip to main content

Posts

Showing posts from June, 2020

Periodic error when creating Custom Collection "expected Array to be a Hash"

https://community.shopify.com/c/Shopify-APIs-SDKs/Periodic-error-when-creating-Custom-Collection-quot-expected/td-p/697730 https://community.shopify.com/c/Shopify-APIs-SDKs/Bad-Request-publications-expected-Array-to-be-a-Hash/td-p/692222 I have tried some try catch script but no luck. It seem Shopify throw error that can not catch or something else. I do not have much knowledge about PHP try catch exception. So I use simple way to detect error response and then sleep for a while then retry again. Because of this issue happen periodically (or may be randomly) and product data that send is OK. Edit ShopifyResource.php (in /vendor/phpclassic/... or in shopify-laravel lib) This function, at line about 508:     /**      * Process the request response      *      * @param array $responseArray Request response in array format      * @param string $dataKey Keyname to fetch data from response array      *      * @throws ApiException if the response has an error specified      * @throws CurlExce