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

オープン
#82 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@Muneerali199 がすでに取り組んでいます。

2026年11月18日 から。

  • #83 @Muneerali199 による — オープン

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
76/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
typescript

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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
主要言語
YAML
スター
2
フォーク
2
平均マージ
1日 1時間
マージ済み PR(30日)
5

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

AOSSIE-Org/ThruBox-Client のほかの issue

AOSSIE-Org/ThruBox-Client の issue をすべて見る

似ている issue

Backend & API Design の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。