Closed baorv closed 3 years ago
How can I handle error 429 in this package? @slince
Hello; You can catch this exception and do something else;
try {
$currentProducts = $pagination->current(); //current page
while ($pagination->hasNext()) {
$nextProducts = $pagination->next();
}
} catch (Slince\Shopify\Exception\ClientException $e) {
dump($e);
}
I think that error 429 should be implemented in this package. I see that you implement it in this line: https://github.com/slince/shopify-api-php/blob/master/src/Client.php#L344
But I still got this error.
fixed
I got this error when using this package to fetch order information
429 Too Many Requests
response: {"errors":"Exceeded 0 calls per second for api client. Reduce request rates to resume uninterrupted service." `