element-web icon indicating copy to clipboard operation
element-web copied to clipboard

Message couldn't be found after visiting permalink - `Failed to load timeline position`

Open JokerGermany opened this issue 2 years ago • 7 comments

Steps to reproduce

  1. Where are you starting? What can you see? This link should be opened as guest User: https://matrix.to/#/!jqjYAhOIRvqbLqqsQs:matrix.org/$l00waANOlw7k0r_UlPt-2rjK-Oy1XDoHc2qEO2bX2X0?via=matrix.org&via=tchncs.de&via=sils.li

This is e.G. the link in Element: https://app.element.io/#/room/!jqjYAhOIRvqbLqqsQs%3Amatrix.org/%24l00waANOlw7k0r_UlPt-2rjK-Oy1XDoHc2qEO2bX2X0?via=matrix.org&via=tchncs.de&via=sils.li

Outcome

What did you expect?

Showing the linked messages (after waiting until the message is loaded => could be found)

What happened instead?

It throws an error, that the message couldn't be found.

Operating system

Ubuntu Mate 22.04

Browser information

Firefox 113.0 (64-Bit)

URL for webapp

app.element.io

Application version

No response

Homeserver

No response

Will you send logs?

No

JokerGermany avatar May 10 '23 16:05 JokerGermany

That is an error coming from matrix.org - I suggest [email protected]

image

t3chguy avatar May 10 '23 16:05 t3chguy

Could this be a synapse Problem? I won't get any help from morg and don't know any other element web service with guest access enabled...

JokerGermany avatar May 10 '23 17:05 JokerGermany

visibillity setting shouldn't be the problem, you can find the message this way: Call https://app.element.io/#/room/!jqjYAhOIRvqbLqqsQs%3Amatrix.org/%24l00waANOlw7k0r_UlPt-2rjK-Oy1XDoHc2qEO2bX2X0?via=matrix.org&via=tchncs.de&via=sils.li Scroll until at least 2023-04-01 Call https://app.element.io/#/room/!jqjYAhOIRvqbLqqsQs%3Amatrix.org/%24l00waANOlw7k0r_UlPt-2rjK-Oy1XDoHc2qEO2bX2X0?via=matrix.org&via=tchncs.de&via=sils.li again in the same windows And then he will show you the correct message

JokerGermany avatar May 11 '23 09:05 JokerGermany

This seems like an Element client bug.

The event exists in the matrix.org database and is visible in the Matrix Public Archive at https://archive.matrix.org/roomid/jqjYAhOIRvqbLqqsQs:matrix.org/date/2023/03/31?at=$l00waANOlw7k0r_UlPt-2rjK-Oy1XDoHc2qEO2bX2X0

If you look in the devtools console when visiting the Element link, it makes a GET https://matrix-client.matrix.org/_matrix/client/r0/rooms/!jqjYAhOIRvqbLqqsQs%3Amatrix.org/context/%24l00waANOlw7k0r_UlPt-2rjK-Oy1XDoHc2qEO2bX2X0?filter=%7B%22lazy_load_members%22%3Atrue%7D request which is successful and the event is visible in the response as expected. But Element throws a Failed to load timeline position error dialog and you can see this error in the devtools console:

Error loading timeline panel at !jqjYAhOIRvqbLqqsQs:matrix.org/$l00waANOlw7k0r_UlPt-2rjK-Oy1XDoHc2qEO2bX2X0 Error: No timeline given to initFields
    at n (timeline-window.ts:101:23)

Whatever the root cause is here is probably the same thing that is causing https://github.com/vector-im/element-web/issues/20927 to happen as well. But this is a nice reproducible example to work from!

MadLittleMods avatar May 25 '23 04:05 MadLittleMods

An ESS customer also ran into this when jumping to the first unread message in a room. Rageshake linked

Twi1ightSparkle avatar Feb 25 '25 13:02 Twi1ightSparkle

I'll add that this is what stopped our company from using Matrix. We are 5 people using a self-hosted synapse server and official Element clients. Permalinks, threads, unread jumps and search results failed to load with this error so frequently that it made the product unusable and we had to abandon it for another solution that worked.

kevincox avatar Feb 25 '25 13:02 kevincox

Please fix this. Very annoying. On my Element Chat Client I dont have it but on by Web Browser I have that bug.

suse-coder avatar Jun 16 '25 16:06 suse-coder