davidgfnet / whatsapp-purple

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

connection error #156

Open ClaudeVA opened 10 years ago

ClaudeVA commented 10 years ago

First of all: nice job getting whatsapp to the desktop. On windows 7 with pidgin I'm not able to get a working connection. I got an account through yowsup and I can send & receive messages through the CLI, so I guess the account is ok. From the debug window I extracted the following events.

(10:46:36) account: Connecting to account . (10:46:36) connection: Connecting. gc = 05884048 (10:46:36) waprpl: logging in (10:46:36) dnsquery: Performing DNS lookup for c3.whatsapp.net (10:46:36) dnsquery: IP resolved for c3.whatsapp.net (10:46:36) proxy: Attempting connection to 208.43.122.143 (10:46:36) proxy: Connecting to c3.whatsapp.net:443 with no proxy (10:46:36) proxy: Connection in progress (10:46:36) proxy: Connecting to c3.whatsapp.net:443. (10:46:36) proxy: Connected to c3.whatsapp.net:443. (10:46:36) connection: Connection error on 05884048 (reason: 0 description: Lost connection with server (out cb): Bad file descriptor) (10:46:36) waprpl: Connection error (file desc: 756, ret val -1, errno 9) (10:46:36) account: Disconnecting account (00655E28) (10:46:36) connection: Disconnecting connection 05884048 (10:46:36) jabber: jabber_actions: have pep: NO (10:46:36) connection: Destroying connection 05884048

Any ideas?

ghost commented 10 years ago

I am also getting desconnected, can't even login. Got the password from the pw file and works on yowsup-cli.

(20:12:34) account: Connecting to account ############# (20:12:34) connection: Connecting. gc = 0x7fa6804ba290 (20:12:34) waprpl: logging in ############ (20:12:34) dnsquery: Performing DNS lookup for c3.whatsapp.net (20:12:34) dns: Successfully sent DNS request to child 15939 (20:12:34) dns: Got response for 'c3.whatsapp.net' (20:12:34) dnsquery: IP resolved for c3.whatsapp.net (20:12:34) proxy: Attempting connection to 184.173.161.174 (20:12:34) proxy: Connecting to c3.whatsapp.net:443 with no proxy (20:12:34) proxy: Connection in progress (20:12:34) proxy: Connecting to c3.whatsapp.net:443. (20:12:34) proxy: Connected to c3.whatsapp.net:443. (20:12:40) connection: Connection error on 0x7fa6804ba290 (reason: 0 description: Server closed the connection) (20:12:40) account: Disconnecting account ########### (0x7fa68021eba0) (20:12:40) connection: Disconnecting connection 0x7fa6804ba290 (20:12:40) jabber: jabber_actions: have pep: YES (20:12:40) connection: Destroying connection 0x7fa6804ba290

needo37 commented 10 years ago

Duplicated here. I am seeing the same thing.

davidgfnet commented 9 years ago

Have you checked the phone number? People usually get a wrong number due to prefix. Yowsup is smart enough to "fix" some of the silly mistakes, but do not expect this plugin to be that smart. See issue #224 just in case it helps.