skype4pidgin icon indicating copy to clipboard operation
skype4pidgin copied to clipboard

"Failed getting Skype token" as of 20 Nov

Open alexolog opened this issue 9 years ago • 30 comments
trafficstars

Running on Windows.

Yesterday everything worked OK Today Pidgin does not connect to skype, claiming "Failed getting Skype token" Both the desktop client and the web interface work OK. I deleted all the cached certificates, but it didn't help.

Please advise.

alexolog avatar Nov 20 '16 19:11 alexolog

Tried to run the script from #479 and got this:

b'{"skypetoken":"","expiresIn":86400}'

alexolog avatar Nov 20 '16 19:11 alexolog

Can you try logging into web.skype.com in an incognito browser window to see if there's any extra steps that you need to approve?

EionRobb avatar Nov 20 '16 20:11 EionRobb

Using Firefox's private window works fine on web.skype.com

alexolog avatar Nov 20 '16 20:11 alexolog

b'{"skypetoken":"<long string removed>","expiresIn":86400}'

Is <long string removed> something you wrote there? Did you modify the script in any way? Seems like something went wrong somehow

dequis avatar Nov 20 '16 23:11 dequis

Nope, used the script as is and only replaced the string I copied from the output. In particular, the string DID NOT say 'yep looks good'

I tried with a couple of other skype account and got the same result (different string though)

alexolog avatar Nov 20 '16 23:11 alexolog

Ehhh probably harmless, looks like some issue in the interaction between python3's urllib and the headers sent by the server which makes it return bytes instead of unicode. I'm pretty sure it worked before (the script has explicit python2/python3 support), but I could be wrong. This doesn't mean the method is broken, only a slight bug in the testing script.

Either way irrelevant to this ticket.

dequis avatar Nov 21 '16 00:11 dequis

Whatever the problem is, it happened quite suddenly, and wouldn't go away.

alexolog avatar Nov 21 '16 03:11 alexolog

Debug log?

dequis avatar Nov 21 '16 03:11 dequis

https://paste.ee/p/Vacjo

Account name changed to protect the guilty.

alexolog avatar Nov 21 '16 04:11 alexolog

I tried connecting from another computer and it worked.

Comparing the configuration files showed that the failing machine did not have a 'refresh-token' setting in its accounts.xml file while the other machine did.

<account>
	<protocol>prpl-skypeweb</protocol>
	<settings>
		<setting name='refresh-token' type='string'>long string here</setting>
	</settings>
</account>

When I removed the refresh-token from the other machine, it started failing as well. When I copied it to the first machine, it started working.

alexolog avatar Nov 21 '16 17:11 alexolog

When first connecting from a Pidgin install I haven't used a while, I often get "Failed getting Skype token" at the bottom of the Pidgin window. After I click on the button to re-enable the account, it successfully connects, though it may take a bit longer than it should.

dreamlayers avatar Nov 25 '16 17:11 dreamlayers

This could may be help... have a look https://github.com/EionRobb/skype4pidgin/issues/474#issuecomment-263105854

intika avatar Dec 02 '16 07:12 intika

I am getting this error starting this morning.

veritas1980 avatar Dec 15 '16 13:12 veritas1980

I am getting this error starting this morning.

Yes, same problem since today. In debug log I can see HTML with this error:

Sorry, something went wrong. Please try again.

xvitaly avatar Dec 15 '16 13:12 xvitaly

http://heartbeat.skype.com/2016/12/skype_multiple_service_outage.html there's an outage.

veritas1980 avatar Dec 15 '16 13:12 veritas1980

In testing authentication via an Incognito window to https://web.skype.com I confirmed -- now that Skype has been fully Microsoft-ized -- two-factor authentication will cause the "Failed getting Skype token" error:

https://account.live.com/proofs/Manage ("Two-step verification")

So now you must choose: a secure 2FA Microsoft account or using Skype via Pidgin.

  • Dave

ViperGeek avatar Feb 01 '17 17:02 ViperGeek

@ViperGeek #385

dequis avatar Feb 02 '17 16:02 dequis

@EionRobb is this still being looked at? I'll often get the "Failed getting skype token" but hitting reenable fixes it 100% of the time. Without any notification that the connection is down I can be disconnected for hours.

xeropresence avatar Jun 08 '17 01:06 xeropresence

The last commit adds a checkbox in the advanced tab, "Use alternative login method", which might help.

dequis avatar Jun 25 '17 19:06 dequis

What is the "alternative" method and when it is recommended to use it?

alexolog avatar Jun 25 '17 20:06 alexolog

See #556 for implementation details. I'd like to make it the default for everyone soon, but it's opt-in for now just in case it doesn't work for some people.

dequis avatar Jun 25 '17 21:06 dequis

Thanks! Is there a Windows build?

alexolog avatar Jun 25 '17 22:06 alexolog

@alexolog I've just updated the dll at https://eion.robbmob.com/libskypeweb.dll but it's not showing the account option yet

EionRobb avatar Jun 25 '17 22:06 EionRobb

Thanks Eion!

I know that you are hosting Win32 DLLS for several plugins on your site. Would it be possible to have automated nightly builds for them? Maybe something like http://beam.to/fchat-pidgin ? And if so, would it be possible to have them on a page linked from the main Pidgin site?

alexolog avatar Jun 25 '17 23:06 alexolog

but it's not showing the account option yet

Wait, why.

Last-Modified: Sun, 18 Jun 2017 08:13:18 GMT

You sure about that?

dequis avatar Jun 25 '17 23:06 dequis

but it's not showing the account option yet

... because I was silly and didn't update my code locally. @alexolog if you want to grab the latest dll and give it another try?

EionRobb avatar Jun 26 '17 00:06 EionRobb

I just updated to the latest https://eion.robbmob.com/libskypeweb.dll (no version in the DLL header; SHA-1: 6957AB8A67791E907C98580292954ADEBEE1F7E2) and am also getting:

Login error: Invalid value "ViperGeek" for username param "username" (code 40002)

after enabling "Use alternative login method" on the Advanced tab.

  • Dave

UPDATE: After converting my username to lowercase, I'm in! Thanks for the great work!

ViperGeek avatar Jun 26 '17 18:06 ViperGeek

The new version has 4 checkboxes in the advanced tab, and the top one has no text associated with it.

skype

alexolog avatar Jun 26 '17 19:06 alexolog

Login error: Invalid value "ViperGeek" for username param "username" (code 40002)

UPDATE: After converting my username to lowercase, I'm in!

Ooooh, nice find, thanks!

the top one has no text associated with it

Yeah, that's intentional. It made sense at one point. It doesn't do anything now.

dequis avatar Jun 26 '17 22:06 dequis

So can it be removed?

alexolog avatar Jun 27 '17 00:06 alexolog