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

    Class BadUploadUrlError

    Thrown when an upload URL is no longer valid and must be refreshed.

    Forward-compat insurance: B2 does not currently surface a distinct error code for this case, so classifyError never actually instantiates this class today. It's part of the public API so consumers can pre-write instanceof checks; when B2 documents a bad_upload_url (or similar) error code, the classifyError switch gets a matching case and existing consumer code starts catching the typed error without any changes on their side.

    Until then, expect BadRequestError for upload-URL invalidation scenarios — that's what B2 currently returns.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    B2 error code identifying the error type (e.g. expired_auth_token).

    requestId?: string

    B2 request ID from the X-Bz-Request-Id response header, if present.

    retryable: boolean

    Whether this error is transient and the request can be retried.

    retryAfter?: number

    Retry delay in seconds from the Retry-After response header, if present.

    status: number

    HTTP status code returned by the B2 API.