element-hq / element-x-ios

Next generation Matrix client for iOS built with SwiftUI on top of matrix-rust-sdk.
https://element.io/labs/element-x
Apache License 2.0
388 stars 81 forks source link

Stuck invite - can’t accept or reject #2661

Open ara4n opened 4 months ago

ara4n commented 4 months ago

Steps to reproduce

  1. Get an invite from a user on matrix.org
  2. They presumably leave the room before i accept it
  3. I can’t accept it either. but nor can i reject it; the invite list slowly flashes on and off at me when i try.

Outcome

What did you expect?

reliable invites

Your phone model

No response

Operating system version

No response

Application version

568

Homeserver

No response

Will you send logs?

Yes

stefanceriu commented 4 months ago

It seems that you wanted to join this room

2024-04-07T16:11:00.217977Z DEBUG matrix_sdk::http_client: Sending request | crates/matrix-sdk/src/http_client/mod.rs:182 | spans: root > send{server_versions=[V1_0, V1_1, V1_2, V1_3, V1_4, V1_5] config=RequestConfig { timeout: 30s } config=RequestConfig { timeout: 30s } request_id="REQ-348" request_id="REQ-348" method=POST method=POST uri="https://matrix-client.matrix.org/_matrix/client/v3/rooms/!ichsMPFcHnzwTKFxLx:matrix.org/join" uri="https://matrix-client.matrix.org/_matrix/client/v3/rooms/!ichsMPFcHnzwTKFxLx:matrix.org/join" request_size="2 B" request_size="2 B"}

but then it failed with No known servers

2024-04-07T16:11:03.244520Z DEBUG matrix_sdk::http_client: Error while sending request: Api(Server(ClientApi(Error { status_code: 404, authenticate: None, body: Standard { kind: Unknown, message: "No known servers" } }))) | crates/matrix-sdk/src/http_client/mod.rs:192 | spans: root > send{server_versions=[V1_0, V1_1, V1_2, V1_3, V1_4, V1_5] config=RequestConfig { timeout: 30s } config=RequestConfig { timeout: 30s } request_id="REQ-348" request_id="REQ-348" method=POST method=POST uri="https://matrix-client.matrix.org/_matrix/client/v3/rooms/!ichsMPFcHnzwTKFxLx:matrix.org/join" uri="https://matrix-client.matrix.org/_matrix/client/v3/rooms/!ichsMPFcHnzwTKFxLx:matrix.org/join" request_size="2 B" request_size="2 B" status=404 status=404 response_size="50 B" response_size="50 B"}

which then resulted in a

2024-04-07T16:11:03.248549Z ERROR elementx: Failed accepting invitation with error: Generic(msg: "the server returned an error: [404 / M_UNKNOWN] No known servers") | RoomProxy.swift:270 | spans: root

and then you tried to leave it? 🤔

2024-04-07T16:11:08.138844Z DEBUG matrix_sdk::http_client: Sending request | crates/matrix-sdk/src/http_client/mod.rs:182 | spans: root > send{server_versions=[V1_0, V1_1, V1_2, V1_3, V1_4, V1_5] config=RequestConfig { timeout: 30s } config=RequestConfig { timeout: 30s } request_id="REQ-355" request_id="REQ-355" method=POST method=POST uri="https://matrix-client.matrix.org/_matrix/client/v3/rooms/!ichsMPFcHnzwTKFxLx:matrix.org/leave" uri="https://matrix-client.matrix.org/_matrix/client/v3/rooms/!ichsMPFcHnzwTKFxLx:matrix.org/leave" request_size="2 B" request_size="2 B"}

Either way, not entirely sure what the client can do here.

ara4n commented 4 months ago

the 'leaving it' is me trying to reject the invite. which failed.

stefanceriu commented 4 months ago

Does it work now at least?

ara4n commented 4 months ago

i opened up invites, and saw it. it then vanished, and got replaced by a single item (the previous invite). it now seems to have gone.

ara4n commented 4 months ago

i.e. i can believe that the main problem here is that the invite list has regressed in terms of handling large numbers of invites.