Closed ioqy closed 1 year ago
I just retested for you:
matrix-commander --login password
Enter URL of your homeserver: [https://matrix.example.org] https://matrix.example.org
Enter your user ID: [@john:example.org] or [john] for @john:matrix.example.org : john
Please provide your Matrix account password.
Password:
Choose a name for this device: [matrix-commander]
Enter room ID for default room: [!SomeRoomIdString:example.org] or [alias] for #alias:matrix.example.org : alias
2022-11-04 13:00:52,485: INFO: matrix-commander: The provided login data is: homeserver='https://matrix.example.org'
2022-11-04 13:00:52,485: INFO: matrix-commander: user id='@john:matrix.example.org'
2022-11-04 13:00:52,485: INFO: matrix-commander: device name='matrix-commander'
2022-11-04 13:00:52,485: INFO: matrix-commander: room id='#alias:matrix.example.org'
The provided login data is: homeserver='https://matrix.example.org'
user id='@john:matrix.example.org'
password='***'
device name='matrix-commander'
room id='#alias:matrix.example.org'
Correct? (Yes or Ctrl-C to abort) Y
2022-11-04 13:01:17,851: ERROR: matrix-commander: The program matrix-commander.py failed. Sorry.
2022-11-04 13:01:17,851: ERROR: matrix-commander: Cannot connect to host matrix.example.org:443 ssl:default [Name or service not known]
2022-11-04 13:01:17,853: INFO: matrix-commander: 2 errors and 0 warnings occurred.
It works as expected. (It could not connect because I entered a host that does not exist. But it worked just fine.)
Same version:
matrix-commander --version
_| _| _|_|_| _| matrix-commander: 3.5.23 2022-10-25
_|_| _|_| _| _| a Matrix CLI client
_| _| _| _| _| enjoy and submit PRs
_| _| _| _| matrix-nio: 0.20.0
_| _| _|_|_| _| Python: 3.10.7
What OS?
The underlying OS:
Operating System: Debian GNU/Linux 11 (bullseye)
Kernel: Linux 5.10.0-19-amd64
Architecture: x86-64
It was a problem on my end. I ran the container only with docker run --tty
. Adding the --interactive
option solved the problem.
Sorry for any inconvenience.
OK, glad it is working and you are on your way. :+1:
When only using
--login password
to login to an account it hangs after entering the URL of the homeserver. I have waited for something like 30 minutes but there was no timeout or something.With debugging I get the following output:
Then I enter
https://matrix.org
and it just hangs until I press ctrl+c.I used this method in the past and it worked fine.
Then I found out that I could give the homeserver, username and password as parameter and tried with the parameters
--login password --user-login '@example:matrix.org' --password 'example' --homeserver 'https://matrix.org'
and get a prompt for a device name. After entering the device name it also hangs. So I try with all the parameters that the password login supports--login password --user-login '@example:matrix.org' --password 'example' --homeserver 'https://matrix.org' --device 'matrix-commander' --room-default '!example:matrix.org'
and then it worked fine.I used the latest version via docker: