matrix-static icon indicating copy to clipboard operation
matrix-static copied to clipboard

Errors are unintelligible

Open fimbault opened this issue 5 years ago • 6 comments

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

fimbault avatar May 13 '20 09:05 fimbault

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/

t3chguy avatar May 13 '20 11:05 t3chguy

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.

fimbault avatar May 13 '20 15:05 fimbault

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.

t3chguy avatar May 13 '20 15:05 t3chguy

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.

fimbault avatar May 13 '20 15:05 fimbault

I will use this as a "BETTER ERRORS" issue :D

t3chguy avatar May 13 '20 15:05 t3chguy

Thanks, keep on the good work ;-)

fimbault avatar May 13 '20 15:05 fimbault