EionRobb / skype4pidgin

Skype Plugin for Pidgin, libpurple and more
https://github.com/EionRobb/skype4pidgin/tree/master/skypeweb#skypeweb-plugin-for-pidgin
624 stars 88 forks source link

Login error: No handler found for resource (code 40499) #639

Closed xss closed 5 years ago

xss commented 5 years ago

Connection via skypeweb plugin doesn't work for me anymore. Pidgin shows the error ...

Login error: No handler found for resource (code 40499)

... and disables the account.

Two days ago, I could still use skypeweb plugin normally, and I think even earlier today. I also just updated skypeweb, but that didn't solve the issue, neither did logging into Skype via web browser or the SkypeForLinux application.

Any hints on this?

dequis commented 5 years ago

Fun. Is this with or without alt login enabled? What do you get when toggling that setting?

xss commented 5 years ago

This is with alt login enabled – I didn't change that setting recently. Without alt login, I get the horrid Magic T value message.

xenos1984 commented 5 years ago

Same error here. I could login 12 hours ago, and stayed logged in until 30 minutes ago. Went to a different computer just now and could not login.

xenos1984 commented 5 years ago

...and this morning it seems to work again. Maybe a temporary problem?

xss commented 5 years ago

Indeed, now it seems to work again, as if nothing ever happened. o.O

I bet they're having great fun over there at Microsoft, changing small things and waiting who notices...

egslava commented 5 years ago

Now I've just got the same problem. Though 2 days before everything okay. I dunno how to login.

xss commented 5 years ago

Yep, for me it's back, as well.

So, again, any hints on this? How may I help with debugging?

accipiter commented 5 years ago

I've just got the same error. I've disabled alt login and now it works.

egslava commented 5 years ago

@accipiter I'm sorry, how do you use non-alt login? Do you have any link to a manual?

xss commented 5 years ago

For me disabling alt login doesn't help, as before, I then get the dreaded Magic T value error.

@egslava With pidgin contact list window having focus, press Ctrl+A to open account settings, select your Skype (HTTP) account and click "Modify...". Then, in the tab "Advanced", check or uncheck "Use alternative login method".

When unchecked, you might get the Magic T value error, as well. According to the README here, in this case you should rather activate that setting.

egslava commented 5 years ago

@xss thanks for the reply :) Yeah, I have Magic T value error, probably, because I don't know any way to point the plugin my credentials. It's said, that I need to go to browser's (which one) incognito mode and, there, log in into Skype web. Firefox isn't supported by Skype Web, so I use Chromium. But, anyways, I can't (and couldn't) log in.

xss commented 5 years ago

Yep, I think for some cases when we get the Magic T value error, it really helps logging in via a browser, because some new EULA or data retention policy or whatever from Skype/Microsoft must be accepted first before we are able to continue to use the service (after all, using the "real" Skype client or logging in via a browser, such updates would pop up automatically). IIRC, that's why the Magic T value error at one point got this additional hint. However, apparently, there are more of those Magic T cases, where logging in via browser doesn't change a thing, and this hint can be rather misleading.

brianjmurrell commented 5 years ago

Disabling alt login, resulted in Magic T errors. Logging in via incognito session in chrome and processing the (secure your account or somesuch nonsense) popup dialog with a "skip" allowed me to log in with this plugin without alt login again.

bmomjian commented 5 years ago

Interesting. I got the error with Alt-Login on and off. I logged in to Skype on Chromium and after that Pidgin login worked. It did ask me if my security info was correct, so maybe it just needed to check that.

chainria commented 5 years ago

Same here. Alt-Login seems broken all the time now. But logging in on Skype.com (web.skype.com did not help!) worked. It asked me about the Security Information as well. Might very well be that that's the problem. So, Alt-Mode off now for me, two out of two accounts working again.

alexolog commented 5 years ago

Disabled alt-login. Logged in from chrome. This solved the problem. Re-enabling alt-login, brings the problem back, so I keep it disabled.

667bdrm commented 5 years ago

Not helped with alt login and without alt login. Also I have found that now web.skype.com blocking requests from Gecko engine (Firefox, Tor Browser, etc), curl. In browser it has been fixed by substituting Chromium User-Agent header to requests. Tried to substitute User-Agent header to skypeweb_post_or_get() with no luck.

xss commented 5 years ago

No luck here, as well: After disabling alt login, for the very first connection attempt, I received the following error:

Failed getting PPFT value, please try logging in via browser first

For any later attempt in this constellation, the error switched back to the Magic T value one.

Logging in via browser didn't change a thing, no security question or whatever pops up that needs to be confirmed. It's the same for web.skype.com (using Chromium or manipulating user-agent in Firefox) and skype.com directly.

With or without alt login enabled, I am unable to connect to Skype via Pidgin. Doesn't matter, either, whether I try to login via Skype username or the associated email address.

alt login enabled: Login error: No handler found for resource (code 40499) alt login disabled: Failed getting Magic T value, please try logging in via browser first

brianjmurrell commented 5 years ago

@xss:

Logging in via browser didn't change a thing, no security question or whatever pops up that needs to be confirmed.

Did you use an incognito session so that any existing cookies in your non-incognito session are not used?

xss commented 5 years ago

@brianjmurrell Yes, for web.skype.com I did. Anyway, my browser removes the few cookies I accept, as well as LocalStorage, right away after closing the tab. So old session data would be very unlikely and should not be relevant here.

philfry commented 5 years ago

Same here, no handler with alt login, Magic T without alt login. Tried with different browsers in incognito mode, didn't help. The only thing microsoft/skype is asking me for is my billing information which I don't want to fill in.

bolera commented 5 years ago

In my case the code 40499 error appeared after a crash of Windows. The crash seems to have happened in the middle of the Skype sign-in. Maybe data is corrupted. I can sign-in to web.skype.com and secure.skype.com, but this didn't help. I switched to the non-alt login. That works, but I would prefer the new method, of course. Once I switch back to alt login I get the same 40499 error. What can I do to clean it up without removing the account from Pidgin? Is there a temporary directory that holds session data?

dequis commented 5 years ago

Same here, no handler with alt login, Magic T without alt login. Tried with different browsers in incognito mode, didn't help. The only thing microsoft/skype is asking me for is my billing information which I don't want to fill in.

If it does that on every web.skype.com login, then you won't be able to get in. Try to get rid of it.

In my case the code 40499 error appeared after a crash of Windows. The crash seems to have happened in the middle of the Skype sign-in. Maybe data is corrupted. I can sign-in to web.skype.com and secure.skype.com, but this didn't help. I switched to the non-alt login. That works, but I would prefer the new method, of course. Once I switch back to alt login I get the same 40499 error. What can I do to clean it up without removing the account from Pidgin? Is there a temporary directory that holds session data?

No, this has nothing to do with your local data, it's the server.

philfry commented 5 years ago

If it does that on every web.skype.com login, then you won't be able to get in. Try to get rid of it.

entered some fake address data and skype stopped asking for it. Reset all, logged in in incognito. Still getting the handler-thingy, though :\

dequis commented 5 years ago

Getting rid of pages that appear after the web login fixes the non-alt login. Alt login is not affected by it.

There's no known fix for alt login at the moment, for all we know microsoft might have killed it.

philfry commented 5 years ago

There are no nag screens left but still getting the Magic T w/o alt login. But that's probably offtopic, because this issue addresses the alt login.

johannish commented 5 years ago

I, too, tried to disable alt login and used an incognito window to login to skype.com and web.skype.com. I received no prompts other than for username, password, and 2FA code.

My Microsoft account is setup with two-factor-auth--will this prevent altogether me from signing in without alt login? (I have set up a unique app-password, and am using that in the Pidgin plugin.) @philfry @xss do you both have 2FA set up on your Microsoft account?

egslava commented 5 years ago

Just in case: I can log in with disabled alt-login method. But I don't use 2-factor authentication!

dequis commented 5 years ago

Yeah 2fa will stop non-alt-login from working, too.

bolera commented 5 years ago

As I said: for me it started happening immediately after a crash of the system and reboot. 2 days ago. (Others reported it already 7 days ago where it was still working fine for me.) Changing to non-alt login works. Without a need to log into web.skype.com in any form. But alt-login doesn't work at all now and none of the suggested methods makes it wortk again. No 2FA. My question is: is this now a general problem = nobody can login with alt method? Then it's clearly not associated with the crash. But if it's working for many but not for some, then it rather looks like a client-side thing.

xenos1984 commented 5 years ago

For me neither method works. For me alt login still worked on May 6th, but after that it stopped working and I get the "Login error: No handler found for resource (code 40499)".

Without alt login, I get the Magic T error. Browser login does not work at all.

chainria commented 5 years ago

I really guess they just nuked whatever gateway/endpoint was used for Alt-Login (did not look at the code)

xss commented 5 years ago

@philfry @xss do you both have 2FA set up on your Microsoft account?

@raztus I don't, no. Simple login via username (or one of the email addresses skype forced to add at some point) and password.

philfry commented 5 years ago

@raztus yes, using 2FA here.

himselfv commented 5 years ago

Alt-login fails with the same error as everyone here. Switching to normal login and logging in once via web UI worked for me for now.

edsonv commented 5 years ago

I have read all the comments here and I can confirm that when I deactivate the 2FA method and uncheking the alt-login method, I do not get errors

powerman commented 5 years ago

Same thing here, thank you guys for the hint! Disabled alt login, logged in at skype.com in a clean browser (no 2FA), and now pidgin works.

xss commented 5 years ago

For those lucky fellas of you where non-alt login works with 2FA disabled: Do you use your skype name or the email address to log in to skype with Pidgin?

I'm really not in the mood to first enable 2FA only to later disable it, just to see if that works. My phone number is none of Microsoft's business.

powerman commented 5 years ago

@xss I'm using username to login, not email. And I never enabled 2FA on this account before.

667bdrm commented 5 years ago

After some time of using web skype in opera's "vpn" window and switching off alt login in Pidgin with tor socks proxy, the plugin has been started working again.

xss commented 5 years ago

Unfortunately, no luck here. I've been using web.skype.com successfully in private or VPN windows of various browsers and within the Skype desktop client for a few days now, but it didn't help in re-activating the pidgin plugin. The result remains the same:

non-alt login: Failed getting Magic T value alt login: Login error: No handler found for resource (code 40499) Independent on whether I use my Skype login name or my email address.

Anything else one can try now? Any chance for a fix to once again use Skype with pidgin?

gmsotavio commented 5 years ago

Same issue here

Login error: No handler found for resource (code 40499)

dequis commented 5 years ago

Some misc notes here.

The "no handler" error is the output of https://api.skype.com/login/skypetoken using username and the skyper password hash. The full response is a json that doesn't have anything more than what the error message shows.

That method is only used if alt login is enabled and the username isn't a microsoft account (email).

When not using that method (either changed in the code, or switched to an email address), the SOAP reply is a rather unhelpful <S:Fault><faultcode>wsse:FailedAuthentication</faultcode><faultstring>Authentication Failure</faultstring></S:Fault> but for every attempt https://account.live.com/Activity claims it was a successful login

Non-alt login fails because it gets an html page with "Verify your identity"

dequis commented 5 years ago

Oh, derp. I also got an email saying "You need an app password" after those SOAP "successful" logins.

Adding an app password gets it past the SOAP part, but then feeding that token to https://api.skype.com/rps/skypetoken fails with an error that has the same text as the other endpoint. I guess that makes sense.

I think it's good news that the SOAP part still works, and i've known for a while that it can work for plain skype usernames.

Now we need to figure out some way to turn that into a skype token, I guess.

dequis commented 5 years ago

640 has a fix.

Windows users, wait for eion.

EionRobb commented 5 years ago

libskypeweb.zip Wrap your laughing gear around this

xenos1984 commented 5 years ago

Works for me, thanks! :)

xss commented 5 years ago

I can confirm that dequis' commit fixes it for me, as well. Thank you very much!! :)

johannish commented 5 years ago

Confirming that alt-login with an application password (2FA enabled) works for me on Windows 10. Thank you!

alexolog commented 5 years ago

Doesn't work for me. I get "Login error: Bad username or password (Profile accrual is required)"

Non-alt login works