skype4pidgin icon indicating copy to clipboard operation
skype4pidgin copied to clipboard

"Failed getting PPFT value" after resuming from standby

Open xnoreq opened this issue 6 years ago • 18 comments

Pidgin 2.12.0 (libpurple 2.12.0) skype4pidgin 1.4

After coming out of standby, pidgin is offline and display the error: "Failed getting PPFT value". It does not reconnect automatically, so I have to check and reconnect manually.

Also, what does the empty checkbox in advanced account settings do?

grafik

xnoreq avatar Mar 31 '18 10:03 xnoreq

Have you followed the flowchart in the readme?

EionRobb avatar Mar 31 '18 10:03 EionRobb

Yes, I was guessing that the empty checkbox is the "alt login" checkbox, but checking it didn't help anything either. So since I cannot build the latest git version I had to report a bug.

I also did the following experiment:

  1. connect in pidgin
  2. disable the network adapter Now, interestingly, the skype plugin doesn't seem to notice that it doesn't have a connection anymore. Maybe it does only after a couple of minutes (when some timeout is reached)?
  3. disconnect in pidgin
  4. try to connect again (with the network adapter still disabled): "Failed getting PPFT value"

Even after enabling the network adapter again, it can take a few seconds until the network connection is re-established. During that time, any connection attempts in pidgin will also fail with "Failed getting PPFT value", naturally.

Maybe after resuming my PC from standby, the skype plugin tries to connect too soon (before the network connection is re-established) and then simply gives up?

xnoreq avatar Mar 31 '18 10:03 xnoreq

I have edited the first post to clarify that only the automatic reconnection fails. I can still reconnect manually, but it's annoying if I have to check the connection all the time and reconnect manually.

xnoreq avatar Mar 31 '18 13:03 xnoreq

Possibly related: https://github.com/EionRobb/skype4pidgin/issues/474

Blargh23 avatar Apr 20 '18 14:04 Blargh23

I would like to re-affirm that this is still an issue with exactly the same scenario as posted by the original reporter: it happens after a standby. If I restart the PC it normally does not happen. Not sure about a cold start (I almost never do that). I think skypeweb simply gives up too fast or tries to connect too early. So, the solution would be to wait a bit for the first connect or retry a bit more "conservative". I think a one-minute delay would already work. If you look at #474 you see comments about patches to skypeweb.dll doing that. Well, they don't change the connection attempt itself, but the error code, so that it isn't fatal anymore and reconnection attempts can happen. The "alternative auth" isn't going to work according to the flow chart, because it is only for two-factor authentication. (Btw, I had a hard time finding that mysterious "readme" as it isn't at https://github.com/EionRobb/skype4pidgin nor in the source code that I downloaded. I finally found it this way: Wiki tab ->https://wiki.bitlbee.org/HowtoSkypeWeb -> https://github.com/EionRobb/skype4pidgin/tree/master/skypeweb#skypeweb-plugin-for-pidgin). If I understand correctly, the alternative auth can only be used in conjunction with bitlbee, anyway? It would be nice if that timeout period (or whatever you want to call it) could be extended if the first attempt fails or any other suitable solution that makes it reconnect. #474 also mentions that Pidgin tries to reconnect by itself, anyway, so maybe changing the "fatality" of the error would suffice, indeed. Thanks!

bolera avatar Mar 05 '19 14:03 bolera

The alternate auth isn't just for people with a 2fa, it'll work for everyone. I should really make it the default and get rid of the older login mech.

Try using that setting and see how you get on.

EionRobb avatar Mar 06 '19 07:03 EionRobb

Ok, thanks. I just followed the flow chart ;-) So, how do I enable "alternative auth"? Is it that checkmark under Modify Account/Advanced that doesn't have a label? If so, I did now. Will report back. May take some days.

bolera avatar Mar 06 '19 13:03 bolera

Hi Robb, if that checkmark without a label sets "alternative auth" it doesn't make a difference. It's been the same today as with all other wakeups from hibernation in the past. I've verified it's still checked. So, is that the checkmark that sets it or is it elsewhere?

bolera avatar Mar 07 '19 07:03 bolera

@bolera image If you haven't got that option then you're on an older version of the plugin and should consider upgrading

EionRobb avatar Mar 07 '19 09:03 EionRobb

I see I'm also missing the Protocol Icon option. I think I'm up-to-date, there haven't been updates for a while. Which file would that be? LibPurple 2.13.0.0 (it came with Pidgin 2.13.0) libskypeweb.dll has no version information, it's dated June 6, 2018, so I believe it's 1.5. I also have the 1.4 dll available which is smaller and a year older.

bolera avatar Mar 07 '19 09:03 bolera

Editing doesn't work here for me, so I'm adding. I compared with the content of pidgin-skypeweb-installer.exe 1.5 from here: https://github.com/EionRobb/skype4pidgin/releases (usually I just download the dll). And I copied it over. It's identical and no change on that property sheet.

bolera avatar Mar 07 '19 09:03 bolera

I had kept a libskypeweb.14.dll in the plugins directory. Just in case. It seems that Pidgin scans all dlls in it and uses the first (or last, not sure) API it finds. So, it was obviously using the libskypeweb.14.dll and not the libskypeweb.dll in it. I now have the new login option (but not the Protocol icon option) and checked it. Let's see what happens tomorrow morning. Isn't it a security risk that Pidgin just scans the whole directory for dlls and inserts them as plugins?

bolera avatar Mar 07 '19 10:03 bolera

Hello Robb, I can confirm that changing to the "alternative login method" fixes this. It connects now just fine after a hibernate. Thanks!

bolera avatar Mar 09 '19 07:03 bolera

Hi, I have the same issue with PPFT value after waking up the computer. When I switch to the alternate login method I see: "No handler found for resource (code 40499)" and it doesn't connect at all.

grzegorz-janoszka avatar Nov 12 '19 08:11 grzegorz-janoszka

I think the issue is when you have an USB network card. My laptop has USB 3.0 docking station and the network comes via it. So far every time I wake my laptop I have to manually enable the protocol. It is very annoying and sometimes I forget it and I am offline for the whole day. Alternative login method doesn't work as I use 2FA.

What can we do for this plugin to handle better sleep/wake events?

grzegorz-janoszka avatar Dec 18 '19 09:12 grzegorz-janoszka

i use skypeweb 1.7 and suffer from "Failed getting PPFT value, please try logging in via browser first", even i log in via browser first.

bsdoss avatar Sep 17 '20 01:09 bsdoss

i use skypeweb 1.7 and suffer from "Failed getting PPFT value, please try logging in via browser first", even i log in via browser first.

Same for me, logging in from browser works fine - there I also signed out and in again, but issue remains. Checked sign in activity, I only see successful logins.,
Unfortunately alternative login method results in "bad username or password". But despite the issue, thanks a lot for all your work on skype4pidgin!

chkp avatar Sep 23 '20 17:09 chkp

It works again for me. instead of using the v1.7 library from the download-page (releases), I cloned the source and built a .deb. The library is much smaller than the downloaded one but it works for now... crossing fingers :-) Btw, the alternative login method is still failing.

chkp avatar Sep 24 '20 17:09 chkp