-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Include permalink in error message when replied to message fails to load #21536
Comments
Given that its failed loading under the /event/ API then it realistically won't load as a permalink either (/context/ API) so a permalink doesn't do anyone much good, surely? |
I think solving that issue by the suggestion in that issue would be far better then...
Giving a user a link which we know has a significant chance of just erroring is a smell. |
I think this assumption is wrong. The link won't error in all cases. The reply could fail to load in many different ways, not just homeserver network issues. Giving a user no detail on what went wrong or nudge on how to fix things on their own is a smell. Plus the current reason it gives is wrong for why it failed for me: "it either does not exist or you do not have permission to view it." |
When would |
@t3chguy It could fail in the JavaScript code too. As an example in my case, If we're arguing that we should fix the JavaScript instead as well, yes! But any new regression can come in the future to cause replies to not load again (code can fail in many many unexpected ways). So there should be a escape hatch for users to workaround any problem in the mean time. The goal is to make error/fail scenarios better. |
Do you have logs to back that up? I haven't seen any JS failures in this area and don't see any open bugs with logs about them, all current known issues are server/network issue related. |
@t3chguy Yes, No error was thrown as far as I can tell though, https://github.com/matrix-org/element-web-rageshakes/issues/11637#issuecomment-1076509447 I can even still reproduce so here is rageshake logs while staring at it, https://github.com/matrix-org/element-web-rageshakes/issues/11639 |
Turns out for reply fetching we still use the /context/ API rather than the /event/ one (/context/ is also used for fetching permalinks) If no error was thrown then likely it wasn't a JS error, we rarely swallow errors. Can you repro with your devtools open and observe the |
@t3chguy Yes, 200 OK for The place I can still reproduce is within a thread and replies and what not (around this sort of stuff #21533) but the point still stands. Things go wrong in unexpected ways and this same sort of thing could happen in the main timeline for a message that should be there. |
Even after #21533 is now merged and deployed, I'm still seeing the problem around the same reply. It's a reply in the main timeline to a message that is in a thread. And since it's a reply, I am more confident, that it should be in the main timeline but just doesn't have access to the messages within a thread even though it was returned in the 200 OK https://matrix.to/#/!fLeHeojWgBGJlLNdLC:matrix.org/$O8TE4QvivFsz_kstdni7L9yvn6O0scRV4iRbTOumUFQ?via=matrix.org&via=element.io&via=vector.modular.im The case above is not a network problem but to add onto my point of a permalink still being useful in any case, we were just in a hotel with extremely spotty wifi. It's not out of the question for the first These kind of code or network fail cases are unlimited and cannot made to be impossible to encounter. We should strive to improve the fail scenario which could be a variety of solutions:
|
@MadLittleMods the specific bug you are hitting is #21543 - if you could drop repro steps there that would be swell. |
Before #21533, it was unclear to me where the replies were meant to be (in main timeline or thread panel) and whether it was more of a undefined scenario since it was duplicated and would disappear after that PR. Now that is more settled and I can narrow down a bug more clearly. |
it might be possible to add a developer-only button of some kind if we're not certain it'd be safe for the general population. Like matrix-org/matrix-react-sdk#7537 but for replies. |
Your use case
What would you like to do?
When a reply fails to load whether it be network or code related, include a permalink or at least
event_id
for the message it's trying to load so it's possible to reference and find the event in question.Currently, the error message just says the following which has no details.
Why would you like to do it?
It's not easy to find the message it's trying to reference yourself or debug the situation. Just have to View source and dive into the gritty details.
How would you like to achieve it?
Add a permalink to the event in question. The event probably exists if someone is trying to reference it.
These kind of code or network fail cases are unlimited and cannot made to be impossible to encounter. We should strive to improve the fail scenario which could be a variety of solutions:
event_id
to reference. The bare minimum that should be available. "What failed to load?"Have you considered any alternatives?
No response
Additional context
Related to:
The text was updated successfully, but these errors were encountered: