Skip to content
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

Open
1 task done
MagicLegend opened this issue Jul 19, 2022 · 22 comments
Open
1 task done

All requests should have the option to pass $tries #203

MagicLegend opened this issue Jul 19, 2022 · 22 comments

Comments

@MagicLegend
Copy link

Overview/summary

Currently the abstract API calls will not handle rate limiting because $tries is not passed on here:

switch ($httpMethod) {
case "get":
$response = $client->get($path, [], $params);
break;
case "post":
$response = $client->post($path, $body, [], $params);
break;
case "put":
$response = $client->put($path, $body, [], $params);
break;
case "delete":
$response = $client->delete($path, [], $params);
break;
}

Thus $maxTries will default to 1:

$maxTries = $tries ?? 1;

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)
@github-actions
Copy link

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.

@github-actions github-actions bot added the Stale label Sep 28, 2022
@MagicLegend
Copy link
Author

Yeah, and why is it stale bot? Because Shopify doesn't reply ;)

@github-actions github-actions bot removed the Stale label Sep 29, 2022
@github-actions
Copy link

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.

@github-actions github-actions bot added the Stale label Nov 29, 2022
@MagicLegend
Copy link
Author

Yeah, and why is it stale bot? Because Shopify doesn't reply ;)

@github-actions github-actions bot removed the Stale label Nov 30, 2022
@github-actions
Copy link

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.

@github-actions github-actions bot added the Stale label Jan 30, 2023
@MagicLegend
Copy link
Author

Yeah, and why is it stale bot? Because Shopify doesn't reply ;)

@github-actions github-actions bot removed the Stale label Jan 31, 2023
@github-actions
Copy link

github-actions bot commented Apr 2, 2023

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.

@github-actions github-actions bot added the Stale label Apr 2, 2023
@MagicLegend
Copy link
Author

Yeah, and why is it stale bot? Because Shopify doesn't reply ;)

@github-actions github-actions bot removed the Stale label Apr 4, 2023
@github-actions
Copy link

github-actions bot commented Jun 3, 2023

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.

@github-actions github-actions bot added the Stale label Jun 3, 2023
@MagicLegend
Copy link
Author

Yeah, and why is it stale bot? Because Shopify doesn't reply ;)

@github-actions github-actions bot removed the Stale label Jun 6, 2023
@github-actions
Copy link

github-actions bot commented Aug 6, 2023

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.

@github-actions github-actions bot added the Stale label Aug 6, 2023
@MagicLegend
Copy link
Author

Yeah, and why is it stale bot? Because Shopify doesn't reply ;)

@github-actions github-actions bot removed the Stale label Aug 8, 2023
@github-actions
Copy link

github-actions bot commented Oct 8, 2023

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.

@github-actions github-actions bot added the Stale label Oct 8, 2023
@MagicLegend
Copy link
Author

Yeah, and why is it stale bot? Because Shopify doesn't reply ;)

Copy link

github-actions bot commented Dec 9, 2023

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.

@github-actions github-actions bot added the Stale label Dec 9, 2023
@MagicLegend
Copy link
Author

Yeah, and why is it stale bot? Because Shopify doesn't reply ;)

@github-actions github-actions bot removed the Stale label Dec 11, 2023
Copy link

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.

@github-actions github-actions bot added the Stale label Feb 10, 2024
@MagicLegend
Copy link
Author

Yeah, and why is it stale bot? Because Shopify doesn't reply ;)

@github-actions github-actions bot removed the Stale label Feb 14, 2024
Copy link

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.

@github-actions github-actions bot added the Stale label Apr 14, 2024
@MagicLegend
Copy link
Author

Yeah, and why is it stale bot? Because Shopify doesn't reply ;)

@github-actions github-actions bot removed the Stale label Apr 16, 2024
Copy link

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.

@github-actions github-actions bot added the Stale label Jun 15, 2024
@MagicLegend
Copy link
Author

Yeah, and why is it stale bot? Because Shopify doesn't reply ;)

@github-actions github-actions bot removed the Stale label Jun 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant