Skip to content

Instantly share code, notes, and snippets.

View leocxy's full-sized avatar

Leo Chen leocxy

  • Pocket Square
  • Auckland
  • 06:53 (UTC +13:00)
View GitHub Profile
@wowkin2
wowkin2 / Readme.md
Last active September 26, 2024 09:28
Solution: "Exceeded 4 calls per second for api client" Python Shopify API - shopify_python_api

Solution for API call limit "shopify_python_api"

If you are using Python Shopify API and getting following error
"Exceeded 4 calls per second for api client. Reduce request rates to resume uninterrupted service."
but want your script to continue working with some timeout after that,
you can use following script from shopify_limits_patch.py.

For that just copy shopify_limits_patch.py to your project and import shopify_limits_patch.

Or if you want to call it implicitly import it, remove last line patch_shopify_with_limits()
and call it before all your shopify calls.