If the Vikunja-desktop has been running for more than a day or two without restarting, no new task can be created in Kanban mode, a 401 error occurs. Screenshot below
Can you do anything else? (View a list, create a list, create a task from one of the other views, etcâŚ)
It normally logs you out within a day - get the same type of issue using it as a PWA. In fact this is why I stopped using desktop and just use Vikunja as a PWA - it remembers my username and password using standard browser autofill.
With desktop you have to manually log in every dayâŚ
Iâm even into the habit of logging out at the end of the day so I mostly avoid this sort of error.
@cidace4928 try logging out and in again.
@kolaente Is there an env var to make sessions last longer?
Edit: I suppose the problem is that the frontend doesnât realise the session has expired? It ought to detect that and bump the user back to the login page.
It should only log you out if youâre not actively using it within three days (each token is valid for three days by default). If you use it before it is due to expire, the frontend will automatically replace it with a new one. It will only request a new token once the current one is almost expired - maybe that threshold could be extended.
You can change the default ttl of the config in the server config: Config options | Vikunja (but I think this didnât land yet in the stable version).
The next release will have a âremember meâ option which will keep you logged in for 30 days while inactive.
Ah. Itâs possible my ânext dayâ impression was working day based - needed to log in on Monday after not touching it all weekend
yes, i can change view type, create new task in list mode as sample. Also after doing this i can create new tasks in kanban mode again, without errors.
Or rather, the error as in my first message is displayed, but a new task can now be created
Is this reproducible with the unstable version?
yes,
server - vikunja-unstable-windows-4.0-amd64.exe
client 0.18.1+51-6b1bf27bf8