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

Session expiration #41

Open
progval opened this issue Aug 17, 2016 · 3 comments
Open

Session expiration #41

progval opened this issue Aug 17, 2016 · 3 comments
Milestone

Comments

@progval
Copy link

progval commented Aug 17, 2016

After running my script for about a day, my console gets filled with these messages:

Something went wrong!Failed to poll messages..
Error code: 403.
Error: null.
Body:
Something went wrong!Failed to poll messages..
Error code: 403.
Error: null.
Body:
Something went wrong!Failed to poll messages..
Error code: 403.
Error: null.
Body:
Something went wrong!Failed to get auth requests.null/{"statusCode":401,"body":"{"status":{"code":40160,"text":"Skypetoken has expired at 2016-08-17T10:08:00+0000"}}","headers":{"server":"nginx/1.7.8","date":"Wed, 17 Aug 2016 11:25:20 GMT","content-type":"application/json; ver=1.0; charset=utf-8","content-length":"85","connection":"keep-alive","x-stratus-processing-time":"0.0116","x-skype-request-id":"","x-stratus-request-id":"","pragma":"no-cache","cache-control":"no-store, no-cache, must-revalidate","expires":"Thu, 01 Jan 1970 00:00:01 +0000","x-frame-options":"SAMEORIGIN","x-content-type-options":"nosniff, nosniff","x-xss-protection":"1; mode=block","strict-transport-security":"max-age=7776000"},"request":{"uri":{"protocol":"https:","slashes":true,"auth":null,"host":"api.skype.com","port":443,"hostname":"api.skype.com","hash":null,"search":null,"query":null,"pathname":"/users/self/contacts/auth-request","path":"/users/self/contacts/auth-request","href":"https://api.skype.com/users/self/contacts/auth-request"},"method":"GET","headers":{"X-Skypetoken":"","cookie":""}}}
Something went wrong!Failed to poll messages..
Error code: 403.
Error: null.
Body:
Something went wrong!Failed to poll messages..
Error code: 403.
Error: null.
Body:
Something went wrong!Failed to poll messages..
Error code: 403.
Error: null.
Body:

(the long one is actually quite rare, compared to the shorter ones which are printed every second)

@gamelaster
Copy link
Contributor

Uhm, I think after the some time, the cookie expire and its need to make a new "login", but somewhere the credentials are saved. Because I dont know Typescript (or what is used in this library), I cant do any improvements or upgrades, sorry :(

@progval
Copy link
Author

progval commented Aug 26, 2016

Is there some way I can catch the error? Or just make the program exit on such an error, so I can have a bash script restart it?

@FliiFe
Copy link

FliiFe commented Aug 26, 2016

While not a fix by itself, restarting the script on a regular basis (based
on the time the cookie takes to expire) would probably work if you don't
need context-awareness. This is pretty workaround-ish, but that would work.

@ShyykoSerhiy ShyykoSerhiy added this to the 1.0.0 milestone Oct 5, 2016
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

4 participants