Skip to content
This repository has been archived by the owner on May 30, 2023. It is now read-only.

Errors are unintelligible #89

Open
fimbault opened this issue May 13, 2020 · 6 comments
Open

Errors are unintelligible #89

fimbault opened this issue May 13, 2020 · 6 comments

Comments

@fimbault
Copy link

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

@t3chguy
Copy link
Member

t3chguy commented May 13, 2020

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/

@fimbault
Copy link
Author

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.

@t3chguy
Copy link
Member

t3chguy commented May 13, 2020

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.

@fimbault
Copy link
Author

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.

@t3chguy t3chguy reopened this May 13, 2020
@t3chguy
Copy link
Member

t3chguy commented May 13, 2020

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

@t3chguy t3chguy changed the title Preview error Errors are unintelligible May 13, 2020
@fimbault
Copy link
Author

Thanks, keep on the good work ;-)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants