atproto utils for zig zat.dev
atproto sdk zig
26
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add checked XRPC results with retry metadata #2

open opened by zzstoatzz.io targeting main from codex/xrpc-errors-retry

Adds a checked XRPC call path that preserves structured failure information instead of collapsing unsuccessful HTTP responses into transport errors.

Changes:

  • add queryChecked / procedureChecked helpers returning XrpcClient.Result
  • add XrpcError with HTTP status, ATProto error name/message, raw body, and rate-limit headers
  • capture RateLimit-* and Retry-After headers in HttpTransport
  • add conservative retry policy for 429, 500, 502, 503, and 504
  • keep existing raw query / procedure response behavior intact

Verification:

  • zig build -Doptimize=ReleaseFast
  • zig build test -- --test-filter xrpc
  • zig test src/internal/xrpc/transport.zig
  • zig zen
  • git diff --check
Labels

None yet.

assignee

None yet.

Participants 1
AT URI
at://did:plc:xbtmt2zjwlrfegqvch7fboei/sh.tangled.repo.pull/3mkayeld5cc22
Diff #0

No differences found between the selected revisions.

History

1 round 0 comments
sign up or login to add to the discussion
zzstoatzz.io submitted #0
patch application failed: error: No valid patches in input (allow with "--allow-empty")
expand 0 comments