ulyssa / iamb

A Matrix client for Vim addicts
https://iamb.chat
Apache License 2.0
654 stars 46 forks source link

Error when logging on the second time #76

Closed theogf closed 1 year ago

theogf commented 1 year ago

I followed the setup instructions and added my user_id and url and the first login works (almost) great

ulyssa commented 1 year ago

This looks similar to the issue in #53, where the sync endpoint wasn't returning JSON. Could you try running curl to see what it's returning?

curl --http1.1 --get -i https://homeserver.tld/_matrix/client/v3/sync
theogf commented 1 year ago

Running this gets me:

curl: (6) Could not resolve host: homeserver.tld
ulyssa commented 1 year ago

You'll want to replace homeserver.tld with the domain of your homeserver.

iambeingtracked commented 1 year ago

I had the same issue, fixed it by replacing the "url" field to matrix.homeserver.tld instead of homeserver.tld

k4r4b3y commented 1 year ago

I was having the OP issue on my own dendrite server. I was able to connect to it by specifying the url as "https://matrix.homeserver.tld" in the ~/.config/iamb/config.json file.

theogf commented 1 year ago

I figured the issue:

Our server is hosted by Element but the link that was given to me contained an indirection. So changing server from:

chat.our.server to ourserver.ems.host solved the issue.