-
Notifications
You must be signed in to change notification settings - Fork 178
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
All requests should have the option to pass $tries #203
Comments
This issue is stale because it has been open for 90 days with no activity. It will be closed if no further action occurs in 14 days. |
Yeah, and why is it stale bot? Because Shopify doesn't reply ;) |
This issue is stale because it has been open for 60 days with no activity. It will be closed if no further action occurs in 14 days. |
|
This issue is stale because it has been open for 60 days with no activity. It will be closed if no further action occurs in 14 days. |
|
This issue is stale because it has been open for 60 days with no activity. It will be closed if no further action occurs in 14 days. |
|
This issue is stale because it has been open for 60 days with no activity. It will be closed if no further action occurs in 14 days. |
|
This issue is stale because it has been open for 60 days with no activity. It will be closed if no further action occurs in 14 days. |
|
This issue is stale because it has been open for 60 days with no activity. It will be closed if no further action occurs in 14 days. |
|
This issue is stale because it has been open for 60 days with no activity. It will be closed if no further action occurs in 14 days. |
|
This issue is stale because it has been open for 60 days with no activity. It will be closed if no further action occurs in 14 days. |
|
This issue is stale because it has been open for 60 days with no activity. It will be closed if no further action occurs in 14 days. |
|
This issue is stale because it has been open for 60 days with no activity. It will be closed if no further action occurs in 14 days. |
|
Hey, sorry for not responding to this before. We removed stalebot from this repo, and I'm adding this to our tracking so we can investigate it. Thank your for your patience here! |
Overview/summary
Currently the abstract API calls will not handle rate limiting because $tries is not passed on here:
shopify-api-php/src/Rest/Base.php
Lines 173 to 186 in 582252e
Thus
$maxTries
will default to1
:shopify-api-php/src/Clients/Http.php
Line 150 in 582252e
Motivation
We ran into rate limiting issues that weren't handled by the library.
Possible solution
In
Base.php
it should take apart the$params
array and take out atries
value from there, to pass it on to the appropriate function. Another solution would be to simply add an optional parameter up the chain, but that would involve changing every function in this library.Checklist
The text was updated successfully, but these errors were encountered: