ShyykoSerhiy / skyweb

Unofficial Skype API for nodejs via 'Skype (HTTP)' protocol.
MIT License
193 stars 44 forks source link

Bot crashing while attempting to approve login #57

Closed LAK132 closed 7 years ago

LAK132 commented 7 years ago

Bot is throwing "Something went wrong!Failed to find t inside" when the verification code is sent through, I assume this means the skyweb code is incapable of handling 2 step authentication?

nistvan86 commented 7 years ago

I got the same issue trying to login.

ShyykoSerhiy commented 7 years ago

Check if your account has two factor auth. It's not supported for obvious reasons.

nistvan86 commented 7 years ago

Actually it was easier. I had to prove that the account is mine using an SMS code. It's weird that using this API seemingly triggered a check, but I'm not sure.

ShyykoSerhiy commented 7 years ago

Yeah, it's not official API, so in development phase if you restart your app quite frequently, for Microsoft it will look like irregular activity on your account.

ShyykoSerhiy commented 7 years ago

Closing the issue because no fix is required( more like I don't see a way to fix this. )

LAK132 commented 7 years ago

If the bot could simply not crash when the validation page comes up I would have thought that it would continue to work once it has been validated. If not, a more descriptive error code would be nice

ShyykoSerhiy commented 7 years ago

It shouldn't crash in the latest version. You can react on errors in latest version

Skyweb = require('skyweb');
var skyweb = new Skyweb();
const errorListener = (eventName: string, error: string) => {
    console.log(`${errorCount} : Error occured : ${error}`); 
};
skyweb.on('error', errorListener); //Adding error listener