Skip to content

feat(namespace): preserve Retry-After metadata on ThrottlingError #364

Description

@FarmerChillax

Problem

A Lance Namespace REST server return a standard throttling response:

HTTP/1.1 429 Too Many Requests
Retry-After: 2

with the official Namespace error code 21 (THROTTLING).

However, the current REST Namespace client discards response headers while converting an HTTP response into a Namespace error. Callers only receive ThrottlingError with its message and error code; they cannot access Retry-After, the HTTP status, or other response metadata.

This prevents SDK and application layers from implementing server-directed retry, queuing, or throttling coordination.

Detail

skip to lance-format/lance#9113 (comment)

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions