Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Token Expired #14

Open
dann-costa opened this issue May 24, 2018 · 11 comments
Open

Token Expired #14

dann-costa opened this issue May 24, 2018 · 11 comments

Comments

@dann-costa
Copy link

Hello,

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

@vittorbraga
Copy link

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

@rogeriolino
Copy link
Member

What PainelWeb and Novo SGA version?

@vittorbraga
Copy link

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

@rogeriolino
Copy link
Member

@vittorbraga
Copy link

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

@rogeriolino
Copy link
Member

@vittorbraga any news about the expired token?

@vittorbraga
Copy link

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

@rogeriolino
Copy link
Member

The wrong version number is my mistake 😢

Version 2.0.1 was a fast fix, so I forgot to increase the version number in configuration file.

@vittorbraga
Copy link

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

@matheusfbraga
Copy link

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

@VBSX
Copy link

VBSX commented Oct 4, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants