azukaar / Cosmos-Server

☁️ The Most Secure and Easy Selfhosted Home Server. Take control of your data and privacy without sacrificing security and stability (Authentication, anti-DDOS, anti-bot)
https://cosmos-cloud.io
Other
3.44k stars 118 forks source link

[BUG]: Cosmos wont show login screen unless cookies / storage is cleared #243

Open siddharthalodha opened 5 months ago

siddharthalodha commented 5 months ago

What happened?

Sometimes I just see the Link broken screen after some time. I have to manually clear the cookies / app storage to reload the website. I think it could be due to multiple Cosmos instances running in same browser but I might be wrong.

I see this error in my browser console : "Uncaught (in promise) SyntaxError: Unexpected token '<', "<!DOCTYPE "... is not valid JSON"

What should have happened?

It should show the login screen if it times out

How to reproduce the bug?

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Relevant log output

- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

Other details

No response

System details

BearTS commented 3 months ago

@siddharthalodha Could you share some pictures for reproducing the bug Or maybe a video, that would be helpful for me to reproduce the bug on my local system and possible fix the same