Skip to content

Fix new resource rate limit issue #82

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

Merged
merged 2 commits into from
May 22, 2019

Conversation

andyexeter
Copy link
Contributor

This PR fixes #81 by checking the X-Shopify-Shop-Api-Call-Limit header and throwing an exception if the request count is below the bucket size after a 429 Too Many Requests error. This is indicative of a resource rate limit error introduced by Shopify a couple of months ago (https://developers.shopify.com/changelog/api-call-limits-will-be-applied-to-variant-creation)

@tareqtms tareqtms merged commit 791ea37 into phpclassic:master May 22, 2019
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

Successfully merging this pull request may close these issues.

Infinite loop after new Shopify variant creation limit
2 participants