[FEATURE]: Opt-in retry for `send()`
I maintainer di solito rispondono entro 1 giorno
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 76/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- typescript
- Ambito
- backend-api-design
Direzione di ricerca
Start with RelayClient.request() in src/client.ts and trace how send() selects maxRetries and applies retry/backoff rules. Add tests for retrying on 503 and timeout, immediate failure on 401, 413, and 429, and retries being off by default. Update the README retries row and send() section; done when these cases and the documented opt-in behavior are covered.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Feature and its Use Cases
send() never retries: request() hard-codes maxRetries = 0 for POST, even though the README says retries covers network errors/5xx and that identical sends are idempotent on Server 1.0+.
Add retrySend?: boolean to ClientOptions (default false). When enabled, send() uses the existing retries and backoff on 5xx and network/timeout errors only. 401, 413 and 429 still fail immediately.
Opt-in because pre-1.0 servers use random UUIDs, so a retry could create duplicates.
Useful for flaky mobile networks and proxies that return occasional 502/503.
Additional Context
- Code:
RelayClient.request()insrc/client.ts - Needs tests for retry on 503 and timeout, no retry on 401/413/429, and the default-off case
- Update the README
retriesrow and thesend()section - No new dependencies
Code of Conduct
- I have joined the Discord server and will post updates there
- I have searched existing issues to avoid duplicates
- Lingua principale
- YAML
- Stelle
- 2
- Fork
- 2
- Merge medio
- 1g 1h
- PR unite (30g)
- 5
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di AOSSIE-Org/ThruBox-Client
-
bug(client): RelayRateLimitError.retryAfter is negative when server sends Retry-After: -5Forse di nuovo libera @ayushjava07 l’ha presa 13 giorni fa e non c’è nessuna pull request aperta. Apertabug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 86/100
AOSSIE-Org/ThruBox-Client#75 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
[BUG]: Response body parsing errors on HTTP 2xx are retried and misclassified as RelayNetworkErrorForse già presa @raus7n l’ha presa 6 giorni fa. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 25/100
AOSSIE-Org/ThruBox-Client#80 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di AOSSIE-Org/ThruBox-Client
Issue simili
-
A voting window past about 69.9 million hours stores a deadline that reads back as no deadlineApertabug ready-for-human
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
BoardGamesEmpire/board-games-empire-backend#1452 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
parity: scripting.net's net-http row fails on macOS with errno 61 where the BDS golden has 111ApertaBug Tests
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
JSPrismarine/JSPrismarine#3384 ·
I maintainer di solito rispondono entro 1 giorno
-
difficulty: easy enhancement quality
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
blowhorn-ai/blowhorn-mcp#70 ·
I maintainer di solito rispondono entro 1 giorno