panel-app icon indicating copy to clipboard operation
panel-app copied to clipboard

Token Expired

Open dann-costa opened this issue 6 years ago • 11 comments

Hello,

When the panel goes inactive for a long time, the token expires, is there any way for the token to remain registered indefinitely?

dann-costa avatar May 24 '18 10:05 dann-costa

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."

vittorbraga avatar Jul 20 '18 17:07 vittorbraga

What PainelWeb and Novo SGA version?

rogeriolino avatar Jul 20 '18 18:07 rogeriolino

Novo SGA version v2.0.0-RC3 PainelWeb v2.0.0-BETA

vittorbraga avatar Jul 20 '18 18:07 vittorbraga

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

rogeriolino avatar Jul 20 '18 18:07 rogeriolino

Ok, after i try this i come back to say my result

vittorbraga avatar Jul 20 '18 18:07 vittorbraga

@vittorbraga any news about the expired token?

rogeriolino avatar Jul 26 '18 12:07 rogeriolino

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

vittorbraga avatar Jul 26 '18 12:07 vittorbraga

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.

rogeriolino avatar Jul 26 '18 12:07 rogeriolino

Rigth, then i will test again and post the result.

vittorbraga avatar Jul 26 '18 12:07 vittorbraga

Anyone got some news? I'm having this trouble

image

And with me, its not just long time. Simple reboot of panel makes that happen...

matheusfbraga avatar Jan 31 '22 10:01 matheusfbraga

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

VBSX avatar Oct 04 '22 19:10 VBSX