Summary
Exploring how to handle rate limit responses in connector builder for GitBook and mapping X-RateLimit-Reset header to GitBook’s retry mechanism
Question
I am using connector builder to make a connector for a service that has a rate limit. When we reach the rate limit we can get a response like this one:
> X-RateLimit-Limit: 60
> X-RateLimit-Remaining: 0
> X-RateLimit-Reset: 1377013266
> {
> "error": {
> "code": 429
> "message": "API rate limit exceeded. Please try again in 60 seconds"
> }
> }```
`X-RateLimit-Reset` is the GMT time when the rate limit will reset
How do I tell GitBook to wait until that time to retry?
I found the `Backoff Strategy` which I think is the correct neighborhood. I think that takes a delay until instead of a wait until value. How do I map this header to what GB needs?
<br>
---
This topic has been created from a Slack thread to give it more visibility.
It will be on Read-Only mode here. [Click here](https://airbytehq.slack.com/archives/C027KKE4BCZ/p1712588489707959) if you want to access the original thread.
[Join the conversation on Slack](https://slack.airbyte.com)
<sub>
["rate-limit", "connector-builder", "gitbook", "backoff-strategy", "x-ratelimit-reset"]
</sub>