@backblaze-labs/b2-sdk - v0.6.0
    Preparing search index...

    Interface UploadRetryOptions

    Shared public options for upload-layer fresh-URL retries.

    interface UploadRetryOptions {
        onUploadRetry?: UploadRetryListener;
        retry?: Partial<RetryOptions>;
        retryResponseBodyFailures?: boolean;
        retryUploadConnectionFaults?: boolean;
    }

    Hierarchy (View Summary)

    Index
    onUploadRetry?: UploadRetryListener

    Callback invoked before a fresh-URL upload retry.

    retry?: Partial<RetryOptions>

    Retry settings shared with the main transport retry configuration.

    retryResponseBodyFailures?: boolean

    Whether unreadable upload response bodies should trigger a retry. Connection failures retry by default with a fresh URL for single-file and part uploads. Defaults to false. Set true only when replaying an ambiguous response is acceptable.

    retryUploadConnectionFaults?: boolean

    Whether single-file upload POST connection faults retry. Defaults to true, or the client default; a per-call value overrides the client setting. Includes network errors, wrapped TypeError/DOMException failures, and timeouts before response headers arrive. A replay can create duplicate versions retained by Object Lock. Set false to surface these faults while retaining server/auth/URL retries and backoff. Upload-URL acquisition failures retain their existing retry policy. Multipart parts and write streams ignore this setting and retain their retry policy. Independent of retryResponseBodyFailures: success-body read failures, including body-read timeouts, follow that option and can still replay when true.