storyblok / storyblok-js-client

Universal JavaScript client for Storyblok's API
MIT License
125 stars 86 forks source link

Hit rate limit errors using the `spaces/${spaceId}/components/` endpoint #810

Closed m-shum closed 5 months ago

m-shum commented 5 months ago

Attempting to fetch a list components, paginated or otherwise, generates a hit rate limit error: Hit rate limit. Retrying in 0 seconds.


Expected Behavior

Requests should be getting throttled automatically as mentioned [here](https://www.storyblok.com/docs/api/content-delivery/v2/getting-started/rate-limit)

Current Behavior

Requests are running in an infinite retry loop.

Steps to Reproduce

Originally encountered when running this script https://www.storyblok.com/faq/how-to-get-all-unused-components