Errors are unintelligible
The room (non encrypted) is configured to allow public preview and works with the matrix web client. The shared url has been generated using the matrix web client too, with the option "Link to most recent message". But matrix-static only displays "Some error has occurred". I am new to matrix and haven't looked in the code what is going on, but it's likely to happen for every new user.
Url to reproduce (as a basic user) : https://matrix.to/#/!itNFPuHTDmvGSASiDR:matrix.org/$f76Ann6mpRupw7E31qzgqNwGx4SrdcWHzviRZ-FzSYs?via=matrix.org
It looks like the event you are trying to permalink to precedes the point at which you made the History public (=Anyone) so it is inaccessible. The error is poor here.
https://view.matrix.org/room/!itNFPuHTDmvGSASiDR:matrix.org/
Thanks a lot for your feedback. It's hard to tell (indeed the error doesn't say much), but there's no prior history (it has just been created from scratch) so I don't really see how that would be inaccessible.
Your permalink is referring to an event $f76Ann6mpRupw7E31qzgqNwGx4SrdcWHzviRZ-FzSYs which is not visible in the room, chances are it predates the history visibility change so it is only visible to room members.
I've tested again. Using a new link : https://matrix.to/#/!itNFPuHTDmvGSASiDR:matrix.org/$QelLFZartqWuRShVOWonD5CkS8Swl32tSSOUonvmi9s?via=matrix.org
It seems to work now, I'm not sure what happens with the old event :
- maybe the system doesn't like when there are no messages in the room.
- maybe it helped that I simulated another user.
Anyway, thanks for your feedback, we can close the issue.
I will use this as a "BETTER ERRORS" issue :D
Thanks, keep on the good work ;-)