Ajax API aggresive 429 status responses when running theme locally

I have an app that has a theme extension. This extension makes a /cart.js request each time the customer navigates to a new page.

I was reported by a developer from a merchant that my extension was throwing errors when they run their theme in a local environment, which I could confirm: in local environments, the cart request constantly gets a 429 code response from Shopify, even if it’s a single request.

Is this expected behavior from the Ajax API? How could I make sure my extension will run correctly in local environments too?

1 Like

This is the same issue I have reported here, could you please add your experience to the existing thread?:folded_hands:

1 Like

Hey @Zak, added some info there too!