Skip to content
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

"Unexpected Error" toasts don't go away and cause problems #2624

Open
prplecake opened this issue Feb 16, 2024 · 5 comments
Open

"Unexpected Error" toasts don't go away and cause problems #2624

prplecake opened this issue Feb 16, 2024 · 5 comments
Labels

Comments

@prplecake
Copy link

Steps to reproduce the problem

  1. Use advanced (deck?) web interface, unsure if the other interface is affected - i don't use it.
  2. Keep tab open through several internet connection changes, or otherwise get Mastodon to show some "Unexpected error" toasts
  3. Eventually find that you can't use the compose column because there's a <div> containing the aforementioned, though hidden, toasts. You can't click things under this <div>

Expected behaviour

Compose column should remain usable regardless of how long it's been since the last page refresh.

Actual behaviour

Compose column becomes unusable after a rather short period of time.

Detailed description

Everything under the element highlighted in blue is un-clickable.

Screenshot 2024-02-16 at 07 35 41

Mastodon instance

compostintraining.club

Mastodon version

v4.3.0-alpha.2+glitch

Browser name and version

Firefox 122.0.1

Operating system

macOS 14.2.1

Technical details

<div>s for other notification toasts do seem to be removed. It's only the unexpected error messages that don't.

@prplecake prplecake added the bug label Feb 16, 2024
@ClearlyClaire
Copy link

Hm, I'm unable to reproduce “Unexpected errors” toasts not going away.

@prplecake
Copy link
Author

Bummer. I do maintain my own fork, but didn't see much, if any, divergence around notification-list things. Still, I went ahead and reduced a lot of divergence, I'll see if that helps.

@prplecake
Copy link
Author

prplecake commented Mar 1, 2024

Hm, I'm unable to reproduce “Unexpected errors” toasts not going away.

To clarify, they visually go away as is you don't see them on the page anymore. But the divs are just pushed off screen, with the div.notification-list blocking the ability to click on anything under it, which is usually the compose column.

I wonder if the theme I'm using is affecting this... I'll switch back to the default theme and see if that helps.

@ClearlyClaire
Copy link

This is really curious and I can't reproduce it, they do get removed from the DOM after moving off-screen on my end… and I can't figure out an explanation by reading the code either :/

@prplecake
Copy link
Author

I only see it on my MacBook, which is starting to lead me to believe something to do with the sleep/wake process, and potentially whatever macOS does during sleep to keep apps up to date. So Mastodon web is repeatedly losing the connection to the API. This would explain why I'm getting so many "Unexpected error" errors. Past that, I can only speculate that React isn't fully updating the UI or something? Certainly not a high priority issue - refreshing is easy enough.

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

No branches or pull requests

2 participants