Open jackrosenthal opened 8 months ago
Correct, that is not implemented.
Anyone wants to add that feature through a PR?
In my case the hostname of the chat server available via a browser differs from the domain available on the .well-known
path (not sure if this is normal). So when inputting the room identifier, there's either going to be a hostname mismatch on the user and/or room, or the issue described above occurs.
Additionally:
docker run -it matrixcommander/matrix-commander --login password
:443
port suffix is required, but will accept one if passed (as per OP's issue)FYI, I'm definetely using the correct username/password pair, as I have successfully logged-in via a browser several times using the same creds.
The provided login data is: homeserver='https://matrix.my-domain.co:443'
user id='@mytestbot:matrix.my-domain.co'
password='***'
device name='test'
room id='!BZRGpTcfepwOPpYPRs:matrix.my-domain.co'
Correct? (Yes or Ctrl-C to abort) Yes
2024-08-22 03:22:57,629: INFO: matrix-commander: The persistent storage directory /data/store was created for you.
2024-08-22 03:22:57,759: WARNING: nio.responses: Error validating response: 'user_id' is a required property
2024-08-22 03:22:57,760: INFO: matrix-commander: The persistent storage directory /data/store was deleted for you.
2024-08-22 03:22:57,762: ERROR: matrix-commander: E234: Log in failed. Most likely wrong credentials were entered. homeserver='https://matrix.my-domain.co:443'; device name='rm'; user='mytestbot:matrix.my-domain.co'; room_id='!BZRGpTcfepwOPpYPRs:matrix.my-domain.co'. Failed to log in: Invalid username or password, M_FORBIDDEN
2024-08-22 03:22:57,762: INFO: matrix-commander: 2 errors and 0 warnings occurred.
The matrix spec permits hosting a file
.well-known/matrix/server
on the server's web root, delegating the server tasks to another hostname: https://spec.matrix.org/v1.9/server-server-api/#resolving-server-namesIt appears that
matrix-commander
does not check this file:(The file at https://ohea.xyz/.well-known/matrix/server should've been used here to determine the server's hostname is
matrix.ohea.xyz:443
).