eclipse-ee4j / eclipse-ee4j/jersey

Respecting `Retry-After` headers

Open
#5,864 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
730
Forks
382
PR merge metrics
No merged PRs in 30d

Description

I've asked on the mailing list but got no response, so I'm trying my luck here.

How does one go about respecting rate-limited `429 Too Many Requests` responses with Jersey clients? Specifically making the client wait the period of time that was indicated in the `Retry-After` response header, before making the next request?

I imagine this requires some client-wide code because a request-scoped filter alone would not be able to deal with this.

I'm using the Jersey 3.1.0 client with `ApacheConnectorProvider` (Apache HTTP Client 4.5.13 I think).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.