Skip to content

Add a default retry handling to avoid retry on specific TRCP errors #1714

@ArnaudBarre

Description

@ArnaudBarre

I just found that with default settings when using the react client, the query is retried 3 times despite the server sending an UNAUTHORIZED error. I think a default could be to only retry in this cases:

PARSE_ERROR: false
BAD_REQUEST: false
INTERNAL_SERVER_ERROR: ?
UNAUTHORIZED: false
FORBIDDEN: false
NOT_FOUND: false
METHOD_NOT_SUPPORTED: false
TIMEOUT: true
PRECONDITION_FAILED: false
PAYLOAD_TOO_LARGE: false
CLIENT_CLOSED_REQUEST: true

I can create a PR if you agree on the general idea

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions