dietzi / yowsup

GNU General Public License v3.0
1 stars 2 forks source link

Connection Closed #2

Open Bunder99 opened 7 years ago

Bunder99 commented 7 years ago

Hi! I successfully register in WhatsApp via yowsup, create the config and try to enter into my account to read messages, but I constantly get the following error after ./yowsup-cli demos --config /root/whatsapp_config.txt --echo -d:

DEBUG:yowsup.layers.network.layer:Disconnected, reason: Connection Closed

Session in my phone closes during the registration in yowsup. Is it normally? Where is my mistake?

dietzi commented 7 years ago

Hi. Session closing is correct because your registering is complete. Try:

./yowsup-cli demos --config /root/whatsapp_config.txt --echo -d -E android

or

./yowsup-cli demos --config /root/whatsapp_config.txt --echo -d -E s40

Bunder99 commented 7 years ago

I've already tried it. If I choose "-E android", I get the error above. If I choose "-E s40", I get: DEBUG:yowsup.layers.network.layer:HttpProxy handle read: HTTP/1.1 200 Connection established and further nothing happens, I can't see my chats or messages, only:

DEBUG:yowsup.layers.logger.layer:rx: stream:features /stream:features DEBUG:yowsup.layers.logger.layer:rx: success status="active" kind="free" creation="xxxxxxxxxx" expiration="4444444444" props="18" t="xxxxxxxxxx" [3��Ɲg�v��kC��N HEX:xxxxxxxxxx /success DEBUG:yowsup.layers.protocol_iq.layer:starting ping thread. DEBUG:yowsup.layers.logger.layer:rx: ib from="s.whatsapp.net" dirty timestamp="xxxxxxx" type="groups" /dirty /ib DEBUG:yowsup.layers.logger.layer:rx: ib from="s.whatsapp.net" offline count="0" /offline /ib DEBUG:yowsup.layers.protocol_iq.layer:ping queue size: 1 DEBUG:yowsup.layers.logger.layer:tx: iq xmlns="w:p" type="get" id="1" /iq DEBUG:yowsup.layers.protocol_iq.layer:ping queue size: 1 DEBUG:yowsup.layers.logger.layer:tx: iq xmlns="w:p" type="get" id="1" /iq DEBUG:yowsup.layers.logger.layer:rx: iq type="result" from="xxxxxxxxx@s.whatsapp.net" id="1" t="xxxxxx" /iq DEBUG:yowsup.layers.protocol_iq.layer:ping queue size: 1 DEBUG:yowsup.layers.logger.layer:tx: iq xmlns="w:p" type="get" id="2" /iq

Please, help me! I really need to make yowsup working.

dietzi commented 7 years ago

Try:

./yowsup-cli demos --config /root/whatsapp_config.txt -d -E s40

Then:

/Login /message send phonenumber(start with country-code without 00 or +) "message"

You should get the message at the destination number. Answer back to this message and you should see the answer in yowsup

Bunder99 commented 7 years ago

But can I see old messages or only new sending by yowsup?