tulir / gomuks

A terminal based Matrix client written in Go.
https://maunium.net/go/gomuks
GNU Affero General Public License v3.0
1.34k stars 120 forks source link

Fails silently on login if homeserver does not support /v3/login #402

Closed AlexBocken closed 1 year ago

AlexBocken commented 1 year ago

I noticed how gomuks failed silently when trying to connect to one of my synapse servers. After pressing "Login", the text "Logging in..." shortly appears but then again disappears without any further changes.

Scanning over my synapse logs this was due to my synapse server not supporting /v3/login as synapse was quite old. The server returns a 404 error code.

It seems quite understandable to me to decide not to support logins older than v3, but could a simple check for return codes be implemented to give users a hint what might be going on? If i wasn't the admin of my own server it would have been basically impossible to figure out the source of this error without long discussions with my matrix server admin.

Great project btw, I enjoy it quite a bit after my synapse update :)