davidgfnet / whatsapp-purple

WhatsApp protocol implementation for libpurple (pidgin)
856 stars 211 forks source link

Connection error #352

Open gmolledaj opened 8 years ago

gmolledaj commented 8 years ago

$ pidgin -d ... (19:27:58) Session Management: Connected to manager (xfce4-session) with client ID 22672d571-a5da-4c65-921f-4b728cc0263a (19:27:58) Session Management: Using pidgin as command (19:27:58) GLib-GObject: value "-387075167" of type 'gint' is invalid or out of range for property 'weight' of type 'gint' (19:27:58) account: Connecting to account 34600111222. (19:27:58) connection: Connecting. gc = 0x7f29eb7ae360 (19:27:58) whatsapp: logging in 34600111222 (19:27:58) dnsquery: Performing DNS lookup for e8.whatsapp.net (19:27:58) Session Management: Received first save_yourself (19:27:58) dns: Created new DNS child 4344, there are now 1 children. (19:27:58) dns: Successfully sent DNS request to child 4344 (19:27:58) Session Management: Received save_complete (19:27:58) docklet: embedded (19:27:58) dns: Got response for 'e8.whatsapp.net' (19:27:58) dnsquery: IP resolved for e8.whatsapp.net (19:27:58) proxy: Attempting connection to 174.36.210.56 (19:27:58) proxy: Connecting to e8.whatsapp.net:5222 with no proxy (19:27:58) proxy: Connection in progress (19:27:58) proxy: Connecting to e8.whatsapp.net:5222. (19:27:58) proxy: Connected to e8.whatsapp.net:5222. (19:28:03) connection: Connection error on 0x7f29eb7ae360 (reason: 0 description: Server closed the connection) (19:28:03) account: Disconnecting account 34600111222 (0x7f29eab4e360) (19:28:03) connection: Disconnecting connection 0x7f29eb7ae360 (19:28:03) connection: Destroying connection 0x7f29eb7ae360

...

davidgfnet commented 8 years ago

What version is this? What resource are you using to login?

marga-personal commented 8 years ago

I'm seeing the same problem: (20:25:55) prefs: /purple/savedstatus/default changed, scheduling save. (20:25:55) account: Connecting to account 491622416851. (20:25:55) connection: Connecting. gc = 0x7f6158109010 (20:25:55) whatsapp: logging in 491622416851 (20:25:55) dnsquery: Performing DNS lookup for c2.whatsapp.net (20:25:55) dns: Created new DNS child 10216, there are now 1 children. (20:25:55) dns: Successfully sent DNS request to child 10216 (20:25:55) dns: Got response for 'c2.whatsapp.net' (20:25:55) dnsquery: IP resolved for c2.whatsapp.net (20:25:55) proxy: Attempting connection to 173.192.222.170 (20:25:55) proxy: Connecting to c2.whatsapp.net:443 with no proxy (20:25:55) proxy: Connection in progress (20:25:55) proxy: Connecting to c2.whatsapp.net:443. (20:25:55) proxy: Connected to c2.whatsapp.net:443. (20:26:00) connection: Connection error on 0x7f6158109010 (reason: 0 description: Server closed the connection) (20:26:00) account: Disconnecting account 491622416851 (0x7f6157dd8440) (20:26:00) connection: Disconnecting connection 0x7f6158109010 (20:26:00) connection: Destroying connection 0x7f6158109010

Version: 0.8.5 Resource: S 40-2.12.11-433

I had the same problem yesterday and I was able to connect after waiting for about half an hour.

I'll try updating to 0.8.6, which I had missed because the date in the changelog is the same as 0.8.6.

davidgfnet commented 8 years ago

Would be really helpful if you guys reported always bugs in HEAD. It's hard to know whether it's an old already-closed bug or it's something new. So please report the commit id on every issue you fill, otherwise I have to ignore them or ask you to update. Thanks

peterpoeliefloeps commented 8 years ago

I had a similar issue and changed the resource, from S60-2.12.21 to Android-2.31.151-443 and now it is working again.

gmolledaj commented 8 years ago

Ayer iba bien, hoy no funcionaba. He vuelto a descargar y usar yowsup para re-registrarme y reconfigurar la cuenta en pidgin. No funcionaba. He descargado las fuentes de whatsapp-purple, las he compilado y reinstalado, y no funciona. ¿Cómo puedo ver la versión de whatsapp-purple instalada? Veo que tengo la opción "Send ciphered messages (when possible)" desmarcada por mi como indican en github.

English google: Yesterday went well, now is not working. I re-download and use yowsup to re-register and reconfigure the account in Pidgin. Did not work. I downloaded the sources whatsapp-purple, I have compiled and reinstalled, and not working. How I can see the version of WhatsApp-purple installed? I see that I have the "Send ciphered messages (when possible)" unchecked my option as shown in github.

English discriminate for country and money. It is better Esperanto as international language.

gmolledaj commented 8 years ago

Perfect, resource Android-2.31.151-443 work perfectly.

davidgfnet commented 8 years ago

If you downloaded it today you should be in the HEAD. As I said before, make sure you use the right Resource. To do that I'd recommend you to remove the account in pidgin and create it again. The configuration does NOT get updated when you update the plugin, since its local. The current android version is 2.12.419, but you can probably use an older one too.

gmolledaj commented 8 years ago

All work perfectly now, was resource: Android-2.31.151-443 work.

marga-personal commented 8 years ago

Changing the resource worked for me as well. Thanks.

gmolledaj commented 8 years ago

In Spanish: en español: el antiguo resource S 40-2.12.11 ya no funciona, ahora hay que usar el resource Andoid-2.31.151-443 para que funcione. ¿Dónde está eso? Pues en Pidgin vas al menú Cuentas - Gestionar cuentas, seleccionas la de whatsapp y pulsas Modificar... En la pestaña Avanzadas verás el recuadro de Resource para cambiarlo a: Android-2.31.151-443

gmolledaj commented 8 years ago

I have received one notification, so I have opened the issue other time: Marga... wrote: I built the debug version and I have tons of output, it's hard to know what's useful. For the groups I'm in, I'm only seeing this from the group owner, although that might be coincidence. This is the most suspicious blob from the corresponding second:

Received message stanza... Axolotl exception (parseGroupWhisperMessage): InvalidKeyIdException No key state 1570576394 in record! Tag: receipt at[id]=0031C436919A9893842 at[participant]=@s.whatsapp.net at[t]=1453925554 at[to]=-1420631910@g.us at[type]=retry Data: ... Tag: registration Data: (\0/+\/+-\/)* ... Tag: retry at[count]=1 at[id]=0031C436919A9893842 at[t]=1453925553 at[v]=1 Data: ...

And then this: (21:12:34) whatsapp: Received message 0031C436919A9893842 type: 0 (from ) Tree read:

Tag: message at[from]=-1420631910@g.us at[id]=0031C436919A9893842 at[notify]= at[participant]=@s.whatsapp.net at[t]=1453925554 at[type]=text Data: ... Tag: enc at[count]=1 at[type]=pkmsg at[v]=2 Data: 3\010\0/\/.+\0.\007\022!\005? ...

And also this: (21:12:34) whatsapp: Received message 0031C436919A9893842 type: 0 (from ) Tree read:

Tag: chatstate at[from]=-1420631910@g.us at[participant]=@s.whatsapp.net Data: ... Tag: composing Data: ...

koem commented 8 years ago

I just cloned the repo and compiled in master. Same problem here - not working. Also tried Andoid-2.31.151-443 instead of Android-2.12.419.

Settings are:

<account>
  <protocol>prpl-whatsapp</protocol>
  <name>491755879370</name>
  <password>LM+4IB2oR2pAfL5fTetIexGQCUO=</password>
  <statuses> ...
  </statuses>
  <settings>
    <setting name='download_pics' type='bool'>0</setting>
    <setting name='use-global-buddyicon' type='bool'>1</setting>
    <setting name='port' type='int'>443</setting>
    <setting name='resource' type='string'>Android-2.12.419</setting>
    <setting name='send_ciphered' type='bool'>0</setting>
    <setting name='buddy_icon_timestamp' type='int'>0</setting>
  </settings>
  <settings ui='gtk-gaim'>
    <setting name='auto-login' type='bool'>1</setting>
  </settings>
  <current_error/>
</account>

logs:

(13:05:16) jabber: jabber_actions: have pep: YES
(13:05:19) jabber: jabber_actions: have pep: YES
(13:05:19) account: Connecting to account 491755879370.
(13:05:19) connection: Connecting. gc = 0x7f44808c64a0
No unread menu
(13:05:19) whatsapp: logging in 491755879370
(13:05:19) dnsquery: Performing DNS lookup for e7.whatsapp.net
(13:05:19) g_log: (../../../lib/unity-gtk-action-group.c:355):unity_gtk_action_group_really_change_action_state: code should not be reached
(13:05:19) g_log: (../../../lib/unity-gtk-action-group.c:363):unity_gtk_action_group_really_change_action_state: code should not be reached
(13:05:19) dns: DNS child 15792 no longer exists
(13:05:19) dns: DNS child 15784 no longer exists
(13:05:19) dns: Created new DNS child 15807, there are now 1 children.
(13:05:19) dns: Successfully sent DNS request to child 15807
(13:05:19) dns: Got response for 'e7.whatsapp.net'
(13:05:19) dnsquery: IP resolved for e7.whatsapp.net
(13:05:19) proxy: Attempting connection to 158.85.58.57
(13:05:19) proxy: Connecting to e7.whatsapp.net:443 with no proxy
(13:05:19) proxy: Connection in progress
(13:05:19) proxy: Connecting to e7.whatsapp.net:443.
(13:05:19) proxy: Connected to e7.whatsapp.net:443.
(13:05:20) connection: Connection error on 0x7f44808c64a0 (reason: 0 description: Server closed the connection)
(13:05:20) account: Disconnecting account 491755879370 (0x7f447fbc7160)
(13:05:20) connection: Disconnecting connection 0x7f44808c64a0
(13:05:20) jabber: jabber_actions: have pep: YES
No unread menu
(13:05:20) connection: Destroying connection 0x7f44808c64a0
(13:05:21) util: Writing file accounts.xml to directory /home/koem/.purple
(13:05:21) util: Writing file /home/koem/.purple/accounts.xml