All requests should have the option to pass $tries
#203 aberto em 19 de jul. de 2022
Métricas do repositório
- Stars
- (469 stars)
- Métricas de merge de PR
- (Métricas PR pendentes)
Description
Overview/summary
Currently the abstract API calls will not handle rate limiting because $tries is not passed on here: https://github.com/Shopify/shopify-api-php/blob/582252eaedb2bb6828bb2d02238e14010d79a2e3/src/Rest/Base.php#L173-L186
Thus $maxTries will default to 1:
https://github.com/Shopify/shopify-api-php/blob/582252eaedb2bb6828bb2d02238e14010d79a2e3/src/Clients/Http.php#L150
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 a tries 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
- I have described this enhancement in a way that is actionable (if possible)