Appearance
Retries
The only retry behavior implemented today is an automatic refresh-and-retry when Shiprocket returns 401.
Flow
- Request is sent with a cached bearer token
- If Shiprocket replies
401, the token is refreshed - The same request is sent again
The client does not cap the number of refreshes, so a request that keeps returning 401 keeps refreshing. Treat repeated failures as a credentials or account problem.
Not implemented
- Exponential backoff
- Retry caps by status code
- Configurable retry policies