[FEATURE]: Opt-in retry for `send()`

Aperta
#82 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@Muneerali199 ci sta già lavorando.

Dal 18/11/2026.

  • #83 di @Muneerali199 — aperta

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

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

documentation enhancement
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() in src/client.ts
  • Needs tests for retry on 503 and timeout, no retry on 401/413/429, and the default-off case
  • Update the README retries row and the send() 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

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di AOSSIE-Org/ThruBox-Client

Tutte le issue di AOSSIE-Org/ThruBox-Client

Issue simili

Altre issue su Backend & API Design

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.