Skip to content

Notes disappearing when returning to homepage #5658

@realChriss

Description

@realChriss

Pre-submission Checklist

  • I have searched the existing issues and this bug has not been reported yet
  • I have tested this issue on the demo site or the latest version

Where did you encounter this bug?

Latest stable version (self-hosted)

Memos Version

v0.26.2

Bug Description

When leaving the page (browser tab) and returning after a while, the notes disappear. Checking the console shows that a request is sent to /memos.api.v1.UserService/ListUserNotifications which is failing with status 401.
Notes return when refreshing the page.

Steps to Reproduce

  1. Open memos and login
  2. Go to the homepage where your notes are listed
  3. Leave the page by switching tabs and wait for a while, I would say more than 15 minutes at least
  4. Return to the page

Expected Behavior

I expect the notes not to disappear and the user to stay authorized.

Screenshots & Additional Context

  • Google Chrome and Brave (happens on both)
  • Docker Image v0.26.2
  • Ubuntu
  • Proxied by Cloudlare Tunnel (cloudflared)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions