Fix #202 slow-network invite timeout handling #207
Reference in New Issue
Block a user
Delete Branch "priyanshu_bharti/flotilla:fix/issue-202-slow-network-invite-timeout"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fix #202: Slow networks break invite codes
Problem
On slow or unstable networks, creating an invite could time out before receiving a claim code.
The invite claim request used a short timeout and did not reliably guarantee state cleanup when the request path stalled. This could leave users stuck on a loading spinner.
What changed
Updated src/app/components/SpaceInvite.svelte
Behavior after fix
Manual verification
Scope
Hi @hodlbod,
I’ve fixed Issue #202 (Slow networks break invite codes).
I properly tested it with heavy network throttling (Slow 3G + custom high latency).
Added try/catch + finally block in SpaceInvite.svelte, increased timeout to 10 seconds, and ensured graceful fallback on error/timeout.
The infinite spinner issue is now resolved.
PR is ready for review.
Thanks!
@@ -53,0 +49,4 @@}),sleep(10000).then(() => {throw new Error("Invite claim timed out")}),Do we need this? The timeout signal should abort the request with no events, which means the claim would be set to an empty string in any case. I think this is over-complicating it and increasing the timeout to 10s would be sufficient
Youre right , i removed the extra timeout race and left the request abort signal to handle the timeout. Thanks for the feedback
7c2897b65dtoae86b8e6b4