php-shopify icon indicating copy to clipboard operation
php-shopify copied to clipboard

Could not resolve host

Open itsrexb opened this issue 5 years ago • 6 comments

Anyone experience the same as these? How do we solve this issue?

  1. PHPShopify\Exception\CurlException: 6 : Could not resolve host: mysite.myshopify.com
  2. PHPShopify\Exception\CurlException: Request failed with HTTP Code 502.
  3. PHPShopify\Exception\ApiException: signature - has already been taken

Thanks!

itsrexb avatar Jan 09 '20 05:01 itsrexb

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)

geetpurwar avatar Feb 04 '20 09:02 geetpurwar

This also happened in travis build.

joeyhub avatar Mar 09 '20 19:03 joeyhub

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.

balazaigo avatar Sep 15 '20 07:09 balazaigo

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 image

itsrexb avatar Nov 07 '22 03:11 itsrexb

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.

fn-jenny avatar Feb 26 '23 18:02 fn-jenny

anyone find a fix for this?

NavidBecause avatar Apr 09 '24 19:04 NavidBecause