Skip to content

http - RetryHandler MUST respect retry-after: <date> #126

Description

@baywet

more details microsoft/kiota#596

Activity

  1. added
    enhancement
    type:enhancement
    help wanted
    on Dec 4, 2024
  2. moved this to Needs Triage 🔍 in Kiotaon Dec 4, 2024
  3. moved this from Needs Triage 🔍 to Todo 📃 in Kiotaon Dec 4, 2024
  4. voidstackloop commented on Sep 16, 2026

    @voidstackloop
    Contributor

    I’d like to work on this. The current HTTP component has no retry middleware, so I’ll keep the contribution focused: wire Faraday’s maintained retry middleware into the default pipeline with Kiota’s standard retry statuses/limits, and add regression coverage proving an HTTP-date Retry-After value is converted to the correct delay.

  5. baywet commented on Sep 16, 2026

    @baywet
    MemberAuthor

    Please go ahead, however, we made an explicit design decision to implement our own middleware and not to rely on the default clients implementations to provide a consistent experience across languages.

    Here is the dotnet implementation for reference.

    https://github.com/microsoft/kiota-dotnet/blob/main/src/http/httpClient/Middleware/RetryHandler.cs

  6. voidstackloop commented on Sep 16, 2026

    @voidstackloop
    Contributor

    Thanks for the clarification. I updated #150 to use a Kiota-owned Faraday middleware based on the .NET behavior and removed the faraday-retry dependency. It now handles 429/503/504 responses, delay-seconds and HTTP-date Retry-After values, bounded retries/delays, the Retry-Attempt header, and avoids replaying non-rewindable bodies.

    The HTTP component suite passes (16 examples), and RuboCop reports no offenses on the revised files. Please take another look when convenient.

  7. moved this from New📃 to Done ✔️ in Kiotaon Nov 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementhelp wantedtype:enhancement

    Projects

    • Status
      Done ✔️

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions