You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’m working on updating our Webflow API to version 2, and while I was able to get it working I can’t seem to understand how to check for rate limiting before receiving a 429 error. We used to check the _meta field in what was returned from the api call to get the rate limit info from data that looked like this.
However, now the v2 API mentions that X-RateLimit-Remaining should be checked in the header, but I think I’m only receiving the body from the API call. Is there a different way I should be calling the js API functions?
Right now they look like this, in general.
I’m working on updating our Webflow API to version 2, and while I was able to get it working I can’t seem to understand how to check for rate limiting before receiving a 429 error. We used to check the _meta field in what was returned from the api call to get the rate limit info from data that looked like this.
However, now the v2 API mentions that X-RateLimit-Remaining should be checked in the header, but I think I’m only receiving the body from the API call. Is there a different way I should be calling the js API functions?
Right now they look like this, in general.
Looking at .collections.items.getItem() it looks like only the body gets passed,
Is there a way I can use the js API and still receive the headers, or otherwise respect the rate limit?
The text was updated successfully, but these errors were encountered: