A better Rust ATProto crate

Token expires for long-lived client #8

closed
opened by bad-example.com

I had a jetstream listener try to post after a long time (>6hrs), which failed with

XRPC error: Unknown error: Object(Object({"error": String(String("ExpiredToken")), "message": String(String("Token has expired"))}))

it would be nice if jacquard's session could detect an expired-token response, try to get a new one, and retry

yeah, that's on the roadmap.

i have a hacky unconditional single retry on failed post that gets a fresh session after a fail before retrying, and it's working well enough for now. really not bad with the way sessions work :)

nice! try with 0.3.0 and see if that works without hacky retry. Sessions in the new version are a bit more internal, but i can bring back the explicit handling as an option, if you prefer, without swapping fully back to the stateless xrpc call interface.

sign up or login to add to the discussion
Labels

None yet.

assignee
nonbinary.computer
Participants 2
AT URI
at://did:plc:hdhoaan3xa3jiuq4fg4mefid/sh.tangled.repo.issue/3m2ju7wmx6422