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

When loading a deep url while not being logged in (anymore) website hangs, rather than showing 404 #67

Closed
corneliusroemer opened this issue Jul 12, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@corneliusroemer
Copy link

Versions

Version used on plausible.com on the 12th of July 2024. But this bug has been around for a while, I just never bothered reporting it.

Describe the bug

When I load a deep URL to my website's dashboard, e.g. https://plausible.io/foo.org (if my website was foo.org) and I haven't been on plausible in a while (refreshing my auth token), the website get stuck in some "pretending to load" state forever, rather than showing a 404 or redirecting to login page.

This is resolved by reloading the page, upon which I'm shown the correct 404 with button to login.

Expected behavior

When I load a deep URL, I either get to see the page, or I get shown 404, but the website shouldn't get stuck showing a "loading" page forever

Steps to reproduce

Might be a bit tricky to reproduce as one needs to wait for a token to expire. But this is essentially what I do:

  1. Log in to plausible
  2. Load my dashboard url, e.g. https://plausible.io/foo.org
  3. Not use plausible for a long time, not sure what the minimum required is to show the bug, it might be as much as a month or more, I rarely check plausible. The time could also be shorter. Hard to tell for me.
  4. Load the dashboard url again https://plausible.io/foo.org
  5. Observe result: a loading page (unfortunately I forgot to screenshot when it happened and due to the difficulty in reproduction I might not be able to for a while)
  6. Reload page
  7. Observe correct result: 404

Your Environment

  • Device: M1 mac
  • OS: macOS 14.5
  • Browser : Brave
  • Version: Version 1.67.123 Chromium: 126.0.6478.126 (Official Build) (arm64)
@corneliusroemer corneliusroemer added the bug Something isn't working label Jul 12, 2024
@corneliusroemer
Copy link
Author

corneliusroemer commented Jul 12, 2024

Wrong repo, will move to https://github.com/plausible/analytics

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant