phpclassic / php-shopify

PHP SDK for Shopify API
Apache License 2.0
568 stars 211 forks source link

Could not resolve host #131

Open itsrexb opened 4 years ago

itsrexb commented 4 years ago

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!

geetpurwar commented 4 years ago

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)

joeyhub commented 4 years ago

This also happened in travis build.

balazaigo commented 4 years ago

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.

itsrexb commented 1 year ago

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

fn-jenny commented 1 year ago

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.

NavidBecause commented 5 months ago

anyone find a fix for this?