Trouble between sessions #1737

Closed
opened 2020-08-08 17:54:50 +00:00 by YasserAntonio · 2 comments

Hello

since few weeks i had some 401 error when i reconect and all my lists, view etc.. where empty.

So basicly here is what i do and what's happening :

  1. login on vikunja with any browser and create a task/list.

  2. Closing vikunja's tab Without logout .

  3. Login using another browser or in private mode with the same account.

Those steps result in a 401 error without the loading animation even if you're in your session.

4 ) Thus i logout properly and reconect.

I'l in my ssion but it keeps loading without retrieving the session's data or giving message error (i waited 5 minutes)

5 ) I logout agin and login another time and then i have my session with all it datas.

This trouble is mainly because i use vikunja on my computer and on my phone (I use the website not the mobile app). I thought it was because of my nfs being on a hard drive which creates some latency so i tried it with nfs on an SSD but the issue still remain. I have other containers including webapps as web-calibre without having this trouble so i assume it must comme from the way the sessions are handled.

In my opinion it's not a blocking issue but being able to use vikunja on different machine without having to logout/login 2 times will enhance user adoption.

Hello since few weeks i had some 401 error when i reconect and all my lists, view etc.. where empty. So basicly here is what i do and what's happening : 1) login on vikunja with any browser and create a task/list. 2) Closing vikunja's tab Without logout . 3) Login using another browser or in private mode with the same account. Those steps result in a 401 error without the loading animation even if you're in your session. 4 ) Thus i logout properly and reconect. I'l in my ssion but it keeps loading without retrieving the session's data or giving message error (i waited 5 minutes) 5 ) I logout agin and login another time and then i have my session with all it datas. This trouble is mainly because i use vikunja on my computer and on my phone (I use the website not the mobile app). I thought it was because of my nfs being on a hard drive which creates some latency so i tried it with nfs on an SSD but the issue still remain. I have other containers including webapps as web-calibre without having this trouble so i assume it must comme from the way the sessions are handled. In my opinion it's not a blocking issue but being able to use vikunja on different machine without having to logout/login 2 times will enhance user adoption.
Owner

Were you able to reproduce this on the demo instance?

What version (frontend and api) are you using?

I'l in my ssion but it keeps loading without retrieving the session's data or giving message error (i waited 5 minutes)

That looks like an indicator something is broken. There should be more information in the browser console, could you verify that?

The session token is saved in the local storage. Do you have any browser extension which might block these kinds of things?

Did you configure a jwt secret in the Vikunja configuration? If you don't, Vikunja will generate a random one on each startup, invalidating all existing tokens.

Interestingly, I'm using Vikunja the same way you do (Desktop and phone) and never had such issues. I didn't built something into Vikunja to prevent such things, so in theory it should work without issues.

Were you able to reproduce this on the [demo instance](https://try.vikunja.io)? What version (frontend and api) are you using? > I'l in my ssion but it keeps loading without retrieving the session's data or giving message error (i waited 5 minutes) That looks like an indicator something is broken. There should be more information in the browser console, could you verify that? The session token is saved in the local storage. Do you have any browser extension which might block these kinds of things? Did you configure a jwt secret in the Vikunja configuration? If you don't, Vikunja will generate a random one on each startup, invalidating all existing tokens. Interestingly, I'm using Vikunja the same way you do (Desktop and phone) and never had such issues. I didn't built something into Vikunja to prevent such things, so in theory it should work without issues.
Author

I dont have this issue with the demo and i have updated my image to the latests and now i can't reproduce it. It might be solved by the latests release.

Unfortunatly the latest released came with a regression : "invalid time value" when trying to set up a starting date in a task using Safari. I can reproduce this issue on the Demo too with Safari but no problem with Chrome browser. I will create another issue for this one, Thanks !

I dont have this issue with the demo and i have updated my image to the latests and now i can't reproduce it. It might be solved by the latests release. Unfortunatly the latest released came with a regression : "invalid time value" when trying to set up a starting date in a task using Safari. I can reproduce this issue on the Demo too with Safari but no problem with Chrome browser. I will create another issue for this one, Thanks !
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: vikunja/vikunja#1737
No description provided.