php-shopify
php-shopify copied to clipboard
Could not resolve host
Anyone experience the same as these? How do we solve this issue?
- PHPShopify\Exception\CurlException: 6 : Could not resolve host: mysite.myshopify.com
- PHPShopify\Exception\CurlException: Request failed with HTTP Code 502.
- PHPShopify\Exception\ApiException: signature - has already been taken
Thanks!
I am getting this error:
[2020-02-04 09:02:54] local.ERROR: 6 : Could not resolve: mysite.myshopify.com (Successful completion) {"exception":"[object] (PHPShopify\Exception\CurlException(code: 0): 6 : Could not resolve: mysite.myshopify.com (Successful completion) at /phpclassic/php-shopify/lib/CurlRequest.php:167)
This also happened in travis build.
PHPShopify\Exception\CurlException: 6 : Could not resolve host: mysite.myshopify.com in /var/www/html/myapp/vendor/phpclassic/php-shopify/lib/CurlRequest.php:173
Can you guys please give us any suggestions for this? Why this is occuring? Help for this is much appreciated.
In my experience, this seems to happen if there's a network issue with my server and it cannot communicate directly to the Shopify server. Still, there's plenty to consider too since I am using Cloudflare as my additional layer of protection.
Second, it might be an issue with the Shopify server which denies your request if you hit the limit per millisecond
My workaround as of the moment is if I catch this response, I will make delay for a second or half a second and request again. I think it is not really an issue with speed
I also have the same problem, this is due to the reached limit of the Shopify API request rate in my case, I use the admin API intensively.
anyone find a fix for this?