element-ios icon indicating copy to clipboard operation
element-ios copied to clipboard

Unrecognised Request

Open kknigge-sbs opened this issue 2 years ago • 4 comments

Steps to reproduce

We have been using a school server in our school for several years, which supports a messenger according to the Matrix standard. Logging in with riot and later Element always worked without any problems. If I now want to log on to a mobile device (primarily iPadOS), the error "unrecognised request" appears. Existing logins can still be used without errors. The error does not occur with desktop apps.

Outcome

What did you expect? Login

What happened instead? No login, „unrecognised request“

Your phone model

No response

Operating system version

No response

Application version

1.9.14

Homeserver

No response

Will you send logs?

No

kknigge-sbs avatar Jan 10 '23 13:01 kknigge-sbs

@kknigge-sbs Can you provide us with more information in order to reproduce this issue? If the homeserver is public that would be useful, otherwise

  • What is the server configuration like (Password only, SSO, multiple auth flows)?
  • When does the alert appear (after entering the server address, a specific screen when registering, on tapping continue on login?

pixlwave avatar Jan 12 '23 11:01 pixlwave

Element Messenger fails with the first request "displayname", which is acknowledged by the server with a 400. Then it tries again dozens of times.

FluffyChat on the other hand uses other requests which are executed successfully. FluffyChat can then be used successfully.

The collected server information and log extracts of both apps can be found in the attached file. Parts of the requests were anonymized, recognizable by the often repeated letters in a row. It should still be sufficient for analysis.

Nothing is logged in the Messenger's Homeserver.log for the two attempts.

Attached file:

Informationen über den Matrix der Stable Server

'/_synapse/admin/v1/server_version' { "server_version": "1.71.0", "python_version": "3.9.15" }


'/_matrix/client/versions' { "versions": [ "r0.0.1", "r0.1.0", "r0.2.0", "r0.3.0", "r0.4.0", "r0.5.0", "r0.6.0", "r0.6.1", "v1.1", "v1.2", "v1.3", "v1.4" ], "unstable_features": { "org.matrix.label_based_filtering": true, "org.matrix.e2e_cross_signing": true, "org.matrix.msc2432": true, "uk.half-shot.msc2666.mutual_rooms": true, "io.element.e2ee_forced.public": false, "io.element.e2ee_forced.private": false, "io.element.e2ee_forced.trusted_private": false, "org.matrix.msc3026.busy_presence": false, "org.matrix.msc2285.stable": true, "org.matrix.msc3827.stable": true, "org.matrix.msc2716": false, "org.matrix.msc3030": false, "org.matrix.msc3440.stable": true, "org.matrix.msc3771": true, "org.matrix.msc3773": false, "fi.mau.msc2815": false, "org.matrix.msc3882": false, "org.matrix.msc3881": false, "org.matrix.msc3874": false, "org.matrix.msc3886": false } }


'/_matrix/client/v3/capabilities' { "capabilities": { "m.room_versions": { "default": "9", "available": { "1": "stable", "2": "stable", "3": "stable", "4": "stable", "5": "stable", "6": "stable", "org.matrix.msc2176": "unstable", "7": "stable", "8": "stable", "9": "stable", "org.matrix.msc3787": "unstable", "10": "stable", "org.matrix.msc2716v4": "unstable" }, "org.matrix.msc3244.room_capabilities": { "knock": { "preferred": "7", "support": [ "7", "8", "9", "org.matrix.msc3787", "10", "org.matrix.msc2716v4" ] }, "restricted": { "preferred": "9", "support": [ "8", "9", "org.matrix.msc3787", "10" ] } } }, "m.change_password": { "enabled": true }, "m.set_displayname": { "enabled": true }, "m.set_avatar_url": { "enabled": true }, "m.3pid_changes": { "enabled": true } } }


'/_matrix/media/r0/config' { "m.upload.size": 1073741824 }


Vergleich Verbinden mit Element - profile Request ist ungültig (400) - Meldung "Unrecognized request"

10.4.10.150 - [13/Jan/2023:07:31:18 +0100] "GET /_matrix/client/r0/profile/%bbbbbbbbb-c9f3-4f90-ae0a-51f4a9d95b8f%OOOOOOO-fa70-4b44-ae6e-eeeeeeeeeee/displayname HTTP/2.0" 400 59 "-" "Element/1.9.14 (iPad (8th generation); iOS 16.1.1; Scale/2.00)" 10.4.10.150 - [13/Jan/2023:07:31:18 +0100] "GET /_matrix/client/versions HTTP/2.0" 200 287 "-" "Element/1.9.14 (iPad (8th generation); iOS 16.1.1; Scale/2.00)" 10.4.10.150 - [13/Jan/2023:07:31:18 +0100] "GET /_matrix/media/r0/config HTTP/2.0" 200 28 "-" "Element/1.9.14 (iPad (8th generation); iOS 16.1.1; Scale/2.00)" 10.4.10.150 - [13/Jan/2023:07:31:18 +0100] "GET /_matrix/client/v3/capabilities HTTP/2.0" 200 267 "-" "Element/1.9.14 (iPad (8th generation); iOS 16.1.1; Scale/2.00)" 10.4.10.150 - [13/Jan/2023:07:31:18 +0100] "GET /iserv/messenger/public/_intercept/_matrix/client/r0/profile/%bbbbbbbbb-c9f3-4f90-ae0a-51f4a9d95b8f%OOOOOOO-fa70-4b44-ae6e-eeeeeeeeeee/displayname HTTP/1.0" 400 59 "-" "Element/1.9.14 (iPad (8th generation); iOS 16.1.1; Scale/2.00)"


Vergleich Verbinden mit FluffyChat - Anmeldung erfolgreich

10.4.10.150 - [13/Jan/2023:07:56:16 +0100] "GET /.well-known/matrix/client HTTP/1.1" 404 196 "-" "Dart/2.18 (dart:io)" 10.4.10.150 - [13/Jan/2023:07:56:16 +0100] "GET /_matrix/client/versions HTTP/1.1" 200 299 "-" "Dart/2.18 (dart:io)" 10.4.10.150 - [13/Jan/2023:07:56:16 +0100] "GET /_matrix/client/v3/login HTTP/1.1" 200 94 "-" "Dart/2.18 (dart:io)" 10.4.10.150 - [13/Jan/2023:07:56:16 +0100] "POST /_matrix/client/v3/register? HTTP/1.1" 403 93 "-" "Dart/2.18 (dart:io)" 10.4.10.150 - [13/Jan/2023:07:56:35 +0100] "POST /_matrix/client/v3/login HTTP/1.1" 200 235 "-" "Dart/2.18 (dart:io)" 10.4.10.150 - [13/Jan/2023:07:56:35 +0100] "POST /_matrix/client/v3/keys/upload HTTP/1.1" 200 79 "-" "Dart/2.18 (dart:io)" 10.4.10.150 - [13/Jan/2023:07:56:35 +0100] "POST /_matrix/client/v3/user/%bbbbbbbbb-c9f3-4f90-ae0a-51f4a9d95b8f%OOOOOOO-fa70-4b44-ae6e-eeeeeeeeeee/filter HTTP/1.1" 200 48 "-" "Dart/2.18 (dart:io)" 10.4.10.150 - [13/Jan/2023:07:56:35 +0100] "GET /_matrix/client/v3/profile/%bbbbbbbbb-c9f3-4f90-ae0a-51f4a9d95b8f%OOOOOOO-fa70-4b44-ae6e-eeeeeeeeeee HTTP/1.1" 200 61 "-" "Dart/2.18 (dart:io)" 10.4.10.150 - [13/Jan/2023:07:56:35 +0100] "GET /_matrix/client/v3/sync?filter=3&timeout=0 HTTP/1.1" 200 23728 "-" "Dart/2.18 (dart:io)" 10.4.10.150 - [13/Jan/2023:07:56:36 +0100] "POST /_matrix/client/v3/keys/query HTTP/1.1" 200 447 "-" "Dart/2.18 (dart:io)" 10.4.10.150 - [13/Jan/2023:07:56:36 +0100] "GET /_matrix/client/v3/rooms/!GGGGznFDWPkSeQJfr%OOOOOOO-fa70-4b44-ae6e-eeeeeeeeeee/state/m.room.member/%4058c22901-751f-47d3-8ade-35fb2f69802b%OOOOOOO-fa70-4b44-ae6e-eeeeeeeeeee HTTP/1.1" 200 84 "-" "Dart/2.18 (dart:io)" 10.4.10.150 - [13/Jan/2023:07:56:36 +0100] "GET /_matrix/client/v3/rooms/!nZldjDZtABKHdTZyFa%OOOOOOO-fa70-4b44-ae6e-eeeeeeeeeee/state/m.room.member/%401345f1d9-47a8-41ff-8626-560f0495b986%OOOOOOO-fa70-4b44-ae6e-eeeeeeeeeee HTTP/1.1" 200 53 "-" "Dart/2.18 (dart:io)" 10.4.10.150 - [13/Jan/2023:07:56:36 +0100] "GET /_matrix/client/v3/pushers HTTP/1.1" 200 329 "-" "Dart/2.18 (dart:io)" 10.4.10.150 - [13/Jan/2023:07:56:36 +0100] "POST /_matrix/client/v3/pushers/set HTTP/1.1" 200 33 "-" "Dart/2.18 (dart:io)"

kknigge-sbs avatar Jan 14 '23 09:01 kknigge-sbs

The same issue.

Your phone model: iPad mini5 with iOS 16.2

Operating system version: Alpine Linux x64

Application version: 1.10.2

Homeserver: matrixdotorg/dendrite-monolith v0.11.1+cc59879 in Docker

Will you send logs? No

It works well on Windows and Android.

Zerorigin avatar Feb 28 '23 12:02 Zerorigin

I have the same issue, only on the iOS client.

My homeserver: Synapse 1.138.0

I'm using Matrix Authentication Service 1.3.0 for authentication.

estevez-dev avatar Oct 30 '25 09:10 estevez-dev