Skip to content

feat(ibdb): handle HTTP 429 rate limit responses - #1528

Open
chad3814 wants to merge 1 commit into
crocodilestick:mainfrom
chad3814:ibdb-rate-limit
Open

feat(ibdb): handle HTTP 429 rate limit responses#1528
chad3814 wants to merge 1 commit into
crocodilestick:mainfrom
chad3814:ibdb-rate-limit

Conversation

@chad3814

@chad3814 chad3814 commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

ibdb.dev now returns HTTP 429 with Retry-After when a client exceeds its rate limit. Previously this fell through to the generic handler and was logged at warning level with no indication of when to retry.

Treat 429 like the existing 501 case: log at debug with the Retry-After value and return an empty result set so the other metadata providers still render. No sleep-and-retry, since search() is synchronous and user-facing — blocking on Retry-After would hang the metadata search UI.

Adds the first unit tests for this provider, covering the 429 path (with and without a Retry-After header) plus the pre-existing 501, generic error, and success paths to pin the branch ordering.

ibdb.dev now returns HTTP 429 with Retry-After when a client exceeds its
rate limit. Previously this fell through to the generic handler and was
logged at warning level with no indication of when to retry.

Treat 429 like the existing 501 case: log at debug with the Retry-After
value and return an empty result set so the other metadata providers
still render. No sleep-and-retry, since search() is synchronous and
user-facing — blocking on Retry-After would hang the metadata search UI.

Adds the first unit tests for this provider, covering the 429 path (with
and without a Retry-After header) plus the pre-existing 501, generic
error, and success paths to pin the branch ordering.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant