-
Notifications
You must be signed in to change notification settings - Fork 211
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disconnect every 6-7 minutes with Tag: stream:error #401
Comments
same here. devel version. |
After re-connection it retrieves** all recent group chat messages again**. |
Same here, disconnect every 6 (+/- 5 seconds) minutes, then a replay of old group chat messages (from about the time it started happening, a couple of days ago) mixed with newer messages (seemingly random order). My own messages are sent correctly, receiving of non-group messages works but is sometimes delayed. Tested with version 0.9.0 and the most recent git master, resource Android-2.31.151-443. |
Same effect with my installation. It appeared on Tu. 22nd of March. |
Question @semitom |
same problem here. whatsapp-purple 0.9.0 resource Android-2.31.151-443. |
@Imhotep-2700bc It really is as simple as cloning the repo and instead of building with |
@semitom Thanks for your hint, it works after cleaning the build. Now I simply started pidgin from bash shell and I'm able to redirect the debug output into a file. Do you know it there is any debug parameter or predefined output file? |
@Imhotep-2700bc Unfortunately I have no knowledge about other possible debugging options |
I too am affected by this bug. |
Same problem. BitlBee-LIBPURPLE 3.4.2, whatsapp-purple (latest master, x64 default build) with Android-2.12.440-443. |
Same problem with latest master on x64 linux (also same debug output with stream:error etc.). BUT: I had two groups popping up with old messages after the reconnect. One of them eventually stopped to produce the same old messages. After I left the other group (that went on popping up with old messages in random order) the server stopped disconnecting every 5-6 minutes! |
A keen observation. I too experience old messages being received over and over again. I did not suspect a correlation at first. It could be that we fail to send acknowledgement messages. It could be that we actively request resends. Either behaviour could lead to a server side forced disconnect. |
The order of the messages appears to be messed up because we ask each sender to reencrypt the messages, which updates to timestamp. The sender also does not process our requests in order. We request reencryption because of these errors:
with varying numbers XXXX. |
I can confirm that. I Have the same problem. |
You might want to try the devel branch. In a recent commit I started making use of the "count" field to try to limit the amount of resends we do, so hopefully after 3 or 4 re-sends it will stop somehow. |
¡Hola! |
With devel version, I get duplicated group messages as well (I get disconnected and reconnected every couple of minutes, with old messages repeated), for about half an hour, then it stops. |
I've been running the devel branch for about 45mins, still keep on getting disconnected every 6-7 minutes and old messages repeated. |
As you can see in the initial comment of this issue, the server sends an id (564BE... above) which is the id of the first message received from the server after having connected. I guess the server is still waiting for us to acknowledge this message. |
OK got it, can you please share a full log so I can get a better look at it? |
I just sent you a log by e-mail. |
Update: For a friends account the method described below did not work. Moreover, it seems that after a couple of group messages the whatsApp server stops delivering further messages of that group, as if it is waiting for a confirmation from the client. In this state my friend could not receive messages from me, though she could send messages to me. Meanwhile I've found a workaround that makes the recurring group messages stop: I quit pidgin. Then I remove the WhatsApp-Account from .purple/accounts.xml and all WhatsApp-contacts from .purple/blist.xml and start pidgin again. After pidgin has connected to one of my other accounts I stop it again, restore the previous state of accounts.xml and blist.xml, and finally start pidgin. |
The workaround did not work for me either (but I only have the whatsapp account on pidgin, so I could not connect it to any other accont), and I have observed the same behavior as your friend (but that was before the attempted workaround): eventually I stopped receiving messages for the only group chat I'm in. Leaving and re-joining the group fixed that (well, it went back to 6 minute disconnect + spamming of old and new message in random order). |
I also use https://github.com/agamez/yappari whatsapp client with Nokia N900. This client is running ok, so maybe the code can be compared? Or maybe not?!. |
version: v0.9.0
pidgin version: Pidgin 2.10.11-16.fc22 (libpurple 2.10.11)
About every 6 or 7 minutes I get disconnected from whatsapp. I built the package with make DEBUG and disconnects happen after the following message:
After re-connection it retrieves all recent group chat messages again.
The text was updated successfully, but these errors were encountered: