element-web: Cannot join room from matrix.to link, "No known servers"

Description

I tried to click on the link in this message and could not join the room this was pointing to:

https://matrix.to/#/!xYvNcQPhnkrdUmYczI:matrix.org/$DJYCtRsqEio-s577yqTZya4EfSnfenU_QIJZ6LYFzK4?via=matrix.org&via=feneas.org&via=maunium.net

This was the link I couldn’t follow: https://matrix.to/#/!yjVgJUsMLYLAONsoii:jki.re/$ABrOfGufg7k0jRLV0MnVLUnD28BYWMFy51hai0SZunU?via=jki.re&via=matrix.org&via=kde.org

Version information

  • Platform: desktop
  • OS: Ubuntu 18.04
  • Version: riot-web version: 1.5.6

About this issue

  • Original URL
  • State: open
  • Created 4 years ago
  • Reactions: 5
  • Comments: 20 (3 by maintainers)

Most upvoted comments

@anoadragon453 I can still reproduce the original issue, i.e. going via https://matrix.to/#/!yjVgJUsMLYLAONsoii:jki.re/$ABrOfGufg7k0jRLV0MnVLUnD28BYWMFy51hai0SZunU?via=jki.re&via=matrix.org&via=kde.org I eventually end up with the following error message from element-desktop:

MatrixError: [404] Can’t join remote room because no servers that are in the room have been provided. (https://matrix.bubu1.eu/_matrix/client/r0/join/!yjVgJUsMLYLAONsoii%3Ajki.re)

The network request sent is:

curl $'https://matrix.bubu1.eu/_matrix/client/r0/join/\u0021yjVgJUsMLYLAONsoii%3Ajki.re' \
  -H 'authority: matrix.bubu1.eu' \
  -H 'accept: application/json' \
  -H 'accept-language: en-US' \
  -H 'authorization: Bearer XXXXXXXXXXXX' \
  -H 'cache-control: no-cache' \
  -H 'content-type: application/json' \
  -H 'origin: vector://vector' \
  -H 'pragma: no-cache' \
  -H 'sec-ch-ua: "Not?A_Brand";v="8", "Chromium";v="108"' \
  -H 'sec-ch-ua-mobile: ?0' \
  -H 'sec-ch-ua-platform: "Linux"' \
  -H 'sec-fetch-dest: empty' \
  -H 'sec-fetch-mode: cors' \
  -H 'sec-fetch-site: cross-site' \
  -H 'user-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Element/1.11.17 Chrome/108.0.5359.179 Electron/22.0.2 Safari/537.36' \
  --data-raw '{}' \
  --compressed

I think the issue here is that element interposes the “can’t load timeline position” popup for me (as noted above) and at that point has lost the via parameters.

I’ll send a rageshake. (Edit: sent)

Edit 2: No change with Element version: 1.11.20 btw. (the latest I currently get from my distro)

@JeanPaulLucien the room directory availability has nothing to do with being able to join rooms via this server. Once again, please stop spreading false information here.