Logos DX
    Preparing search index...

    Interface RetryEventData<S, H, P>

    Event data for retry events.

    Extends base event data with the outcome that triggered the retry — a resolved ok: false response for an HTTP-status retry, or a rejected transport FetchError for a transport retry. Mirrors the union shouldRetry is invoked with.

    interface RetryEventData<S = unknown, H = unknown, P = unknown> {
        aborted?: boolean;
        attempt?: number;
        data?: unknown;
        delay?: number;
        error?: Error | FetchError<DictAndT<H>>;
        headers?: DictAndT<H>;
        method?: string;
        nextAttempt?: number;
        outcome:
            | FetchResponse<unknown, DictAndT<H>, DictAndT<P>>
            | FetchError<DictAndT<H>>;
        params?: DictAndT<P>;
        path?: string;
        payload?: unknown;
        requestEnd?: number;
        requestId?: string;
        requestStart?: number;
        response?: Response;
        state: S;
        status?: number;
        step?: "fetch" | "parse";
        url?: string | URL;
    }

    Type Parameters

    • S = unknown

      Instance state type

    • H = unknown

      Instance headers type

    • P = unknown

      Instance params type

    Hierarchy (View Summary)

    Index

    Properties

    aborted?: boolean
    attempt?: number
    data?: unknown
    delay?: number
    headers?: DictAndT<H>
    method?: string
    nextAttempt?: number
    outcome:
        | FetchResponse<unknown, DictAndT<H>, DictAndT<P>>
        | FetchError<DictAndT<H>>

    The response or error that triggered this retry attempt.

    params?: DictAndT<P>
    path?: string
    payload?: unknown
    requestEnd?: number

    Timestamp (ms) when the request resolved (success, error, or abort)

    requestId?: string

    Unique ID for this request, flows through all events

    requestStart?: number

    Timestamp (ms) when the request entered the execution pipeline

    response?: Response
    state: S
    status?: number
    step?: "fetch" | "parse"
    url?: string | URL