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
I just found that with default settings when using the react client, the query is retried 3 times despite the server sending an
UNAUTHORIZEDerror. 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