project-robius / robrix

A Matrix chat client written in pure Rust using the Makepad UI toolkit and the Robius app dev framework
MIT License
67 stars 11 forks source link

Handle session expiration and timeouts better #61

Open kevinaboos opened 5 months ago

kevinaboos commented 5 months ago

relevant session timeout log:

2024-04-05T21:08:50.040824Z  INFO matrix_sdk::sliding_sync: Session expired; resetting `pos` and sticky parameters
src/sliding_sync.rs:524:17 - sync loop was stopped by client error processing: the server returned an error: [400 / M_UNKNOWN_POS] HTTP 400 : session expired
src/sliding_sync.rs:529:17 - sync loop ended unexpectedly
src/sliding_sync.rs:311:29 - Error: main async loop task ended:
        the server returned an error: [400 / M_UNKNOWN_POS] HTTP 400 : session expired
kevinaboos commented 5 months ago

relevant timeout log from Yue:

src/sliding_sync.rs:524:17 - sync loop was stopped by client error processing: error sending request for url (https://slidingsync.lab.matrix.org/_matrix/client/unstable/org.matrix.msc3575/sync?pos=152&timeout=30000): operation timed out
src/sliding_sync.rs:529:17 - sync loop ended unexpectedly
src/sliding_sync.rs:311:29 - Error: main async loop task ended:
    error sending request for url (https://slidingsync.lab.matrix.org/_matrix/client/unstable/org.matrix.msc3575/sync?pos=152&timeout=30000): operation timed out

Caused by:
    operation timed out