panel-app
panel-app copied to clipboard
Token Expired
Hello,
When the panel goes inactive for a long time, the token expires, is there any way for the token to remain registered indefinitely?
Hi @DanGCosta do you get any solution? I have the same problem, in about 10 seconds i get "Unauthorized: The access token provided is invalid."
What PainelWeb and Novo SGA version?
Novo SGA version v2.0.0-RC3 PainelWeb v2.0.0-BETA
Please upgrade to final release:
https://github.com/novosga/painel-web/releases/tag/v2.0.0 https://github.com/novosga/novosga/releases/tag/v2.0.1
Ok, after i try this i come back to say my result
@vittorbraga any news about the expired token?
Hi @rogeriolino we are having trouble installing the new 2.0.1 on linux. After apparently installing 2.0.1 when we see the installation version is 2.0.0
The wrong version number is my mistake :cry:
Version 2.0.1 was a fast fix, so I forgot to increase the version number in configuration file.
Rigth, then i will test again and post the result.
Anyone got some news? I'm having this trouble
And with me, its not just long time. Simple reboot of panel makes that happen...
If you are having this problem, just modify your "web.js" adding more attempts to the websocket to try to reconnect again,
just change this function:
function n(e, t) { var n = t.state.config.server.split("//"), n = n[0] + "//" + n[1].split("/")[0].split(":")[0] + ":2020"; Object(u.a)("[websocket] trying connect to websocket server: " + n), (f = c()(n, { path: "/socket.io", transports: ["websocket"], secure: !0, timeout: 2e3, reconnection: !0, reconnectionDelay: 1e3, reconnectionDelayMax: 5e3, reconnectionAttempts: 3
To stay like that: function n(e, t) { var n = t.state.config.server.split("//"), n = n[0] + "//" + n[1].split("/")[0].split(":")[0] + ":2020"; Object(u.a)("[websocket] trying connect to websocket server: " + n), (f = c()(n, { path: "/socket.io", transports: ["websocket"], secure: !0, timeout: 60e3, reconnection: !0, reconnectionDelay: 80e3, reconnectionDelayMax: 30e3, reconnectionAttempts: 50