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

"Failed getting PPFT value" after resuming from standby #603

Open xnoreq opened 6 years ago

xnoreq commented 6 years ago

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

EionRobb commented 6 years ago

Have you followed the flowchart in the readme?

xnoreq commented 6 years ago

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 commented 6 years ago

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.

Blargh23 commented 6 years ago

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

bolera commented 5 years ago

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!

EionRobb commented 5 years ago

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.

bolera commented 5 years ago

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 commented 5 years ago

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?

EionRobb commented 5 years ago

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

bolera commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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

grzegorz-janoszka commented 4 years ago

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 commented 4 years ago

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?

bsdoss commented 3 years ago

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.

chkp commented 3 years ago

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 commented 3 years ago

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.