samczsun / Skype4J

Skype API written in Java. Does not support P2P chats
Apache License 2.0
145 stars 48 forks source link

Accounts suspended #143

Open paguan opened 7 years ago

paguan commented 7 years ago

Hey, At random times I'm getting below error after been denied from the POLL endpoint: https://%sclient-s.gateway.messenger.live.com/v1/users/ME/endpoints/SELF/subscriptions/%s/poll

ErrorCode: 401 Message: The provided 'skypetoken' ticket failed authentication. SkypeTokenRevoked

Looking at the PollThread class I see that if the POLL endpoint is responded with a 403 error_code it tries to refresh the token by calling the URL: "https://client-s.gateway.messenger.live.com/v1/users/ME/endpoints/" and this request is the one that is returning the SkypeTokenRevoked error. After having this error the account at Skype is suspended and I need to go through some two-step authentication process to re-enable it.

Has anyone experienced this? Why the token renewal is happening inside the Pollthread? Shouldn't it attempt to get the new token by login with username and password?