Expose pull timeout on upload() and preserve HTTP status on PullError
Maintainers usually reply within 1 day
@hugomrdias is already working on this.
Since Oct 29, 2026.
Assessment
This issue has not been assessed yet.
Description
Follow-up from #799 (closed). The 429/503 + Retry-After handling it asked for is already covered by iso-web's default retry policy on both pull requests, and StorageContext.pull({ timeout }) is already public (default 2h). Two small gaps remain:
1. Expose the pull timeout on StorageManager.upload()
StorageContext.pull() accepts timeout, but StorageManager.upload() doesn't forward one to _pullToSecondariesWithRetry (packages/synapse-sdk/src/storage/manager.ts), so users on the golden path are stuck with the 2h default (RETRY_CONSTANTS.PULL_TIMEOUT).
2. Keep HTTP status info on PullError
In packages/synapse-core/src/sp/pull-pieces.ts, once retries are exhausted the HTTP error is turned into new PullError(await response.error.response.text()), which drops the status code and Retry-After. Callers can't tell a transient overload (429/503) from a permanent failure. PullError should carry the status (and retryAfter when present) so callers can implement their own backoff.
- Dominant language
- TypeScript
- Stars
- 27
- Forks
- 36
- Avg merge
- 2d 4h
- Merged PRs (30d)
- 65
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from FilOzone/synapse-sdk
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
FilOzone/synapse-sdk#1201 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
FilOzone/synapse-sdk#1198 · 1 comment ·
Maintainers usually reply within 1 day
-
Clarify add pieces and create set can be made concurrentlyPossibly taken @hugomrdias claimed this 22 days ago. Opengood first issue
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
FilOzone/synapse-sdk#749 · 1 comment · 1 assignee ·
Maintainers usually reply within 1 day
-
Upload to restricted data sets with `read: "restricted"`Possibly taken @JAG-UK claimed this today. Open
Difficulty 5/5 Over a week Newbie friendliness 25/100
FilOzone/synapse-sdk#1197 · 2 comments ·
Maintainers usually reply within 1 day
-
Pull second copies from `/download` with per-piece FOC grantsPossibly taken @JAG-UK claimed this today. Open
Difficulty 4/5 3-5 days Newbie friendliness 45/100
FilOzone/synapse-sdk#1196 · 1 comment ·
Maintainers usually reply within 1 day
All issues in FilOzone/synapse-sdk
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
zabuton-app/meguri#875 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 86/100
iruzen-dono/workless#117 ·
Maintainers usually reply within 1 day
-
area:api area:web wave wave:trivial
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
vetro-protocol/vetro-monorepo#1321 ·
Maintainers usually reply within 1 day