jlguardi / yowsup

The python WhatsApp library
http://www.openwhatsapp.org
GNU General Public License v3.0
42 stars 23 forks source link

not recieving any messages #7

Closed e0xify closed 8 years ago

e0xify commented 8 years ago

hi,

cloned ur latest version, "recompiled" updated axotlol. after starting yowsup demos im not revieving any messages. worked for me for like an hour after deleting the .db file in /root/.yowsup/

now issue still happens again. any idea?

thx

uraid commented 8 years ago

same here. no messages received but can send outgoing messages.

jlguardi commented 8 years ago

I can't reproduce this issue. I haven't any iphone. Tonight (4 hours from now) I'll try to fix it (I think is the most important issue) but I need logs and probably someone could send me a message with iPhone.

eduardobento commented 8 years ago

Hi @jlguardi , how can we chat private for me send the tests? I will be available tonight...

s-londono commented 8 years ago

Enviame un pm y te devuelvo desde iphone +51989103 doscientos cincuentaycuatro.

jlguardi commented 8 years ago

@eduardobento can you chat me with gmail to my nickname at gmail.com

e0xify commented 8 years ago

any update here?

spsneo commented 8 years ago

I am also not receiving any new messages. Any update on this?

e0xify commented 8 years ago

can provide logs if you tell me how to enable logging here. sending is fine but recieving = nothing happens https://coderus.openrepos.net/whitesoft/whatsapp_scratch

token string changed, updated everything, recompiled, reregisted, still not working

cfenollosa commented 8 years ago

I temporarily got the ACK issue solved after doing the following:

However this was quickly broken again:

  groupId: "34620756395-1439983838@g.us"
  axolotl_sender_key_distribution_message: "3\010\363\343\341\240\004\020\000\032 @T\227mZ\2653\321\316\004\223//\341:\367*\336A\033Y\311{i\333S\207\002\276\212\266\324\"!\005ZM
\271-\357&W\223\300\274\"\341\342\243E\257\242\316c{-^L\257\024\025\255L\325\237)\013"}

Traceback (most recent call last):  File "run/bonio_whatsapp.py", line 33, in <module>
    stack.loop()
  File "/home/astx/whatsbot/env/local/lib/python2.7/site-packages/yowsup2-2.4.48-py2.7.egg/yowsup/stacks/yowstack.py", line 195, in loop
    asyncore.loop(*args, **kwargs)
  File "/usr/lib/python2.7/asyncore.py", line 216, in loop
    poll_fun(timeout, map)
  File "/usr/lib/python2.7/asyncore.py", line 156, in poll
    read(obj)
  File "/usr/lib/python2.7/asyncore.py", line 87, in read    obj.handle_error()
  File "/usr/lib/python2.7/asyncore.py", line 83, in read
    obj.handle_read_event()  File "/usr/lib/python2.7/asyncore.py", line 449, in handle_read_event
    self.handle_read()
  File "/home/astx/whatsbot/env/local/lib/python2.7/site-packages/yowsup2-2.4.48-py2.7.egg/yowsup/layers/network/layer.py", line 88, in handle_read    self.receive(data)
  File "/home/astx/whatsbot/env/local/lib/python2.7/site-packages/yowsup2-2.4.48-py2.7.egg/yowsup/layers/network/layer.py", line 96, in receive
    self.toUpper(data)  File "/home/astx/whatsbot/env/local/lib/python2.7/site-packages/yowsup2-2.4.48-py2.7.egg/yowsup/layers/__init__.py", line 75, in toUpper
    self.__upper.receive(data)
  File "/home/astx/whatsbot/env/local/lib/python2.7/site-packages/yowsup2-2.4.48-py2.7.egg/yowsup/layers/stanzaregulator/layer.py", line 29, in receive
    self.processReceived()
  File "/home/astx/whatsbot/env/local/lib/python2.7/site-packages/yowsup2-2.4.48-py2.7.egg/yowsup/layers/stanzaregulator/layer.py", line 49, in processReceived    self.toUpper(oneMessageData)
  File "/home/astx/whatsbot/env/local/lib/python2.7/site-packages/yowsup2-2.4.48-py2.7.egg/yowsup/layers/__init__.py", line 75, in toUpper
    self.__upper.receive(data)  File "/home/astx/whatsbot/env/local/lib/python2.7/site-packages/yowsup2-2.4.48-py2.7.egg/yowsup/layers/auth/layer_crypt.py", line 65, in receive
    self.toUpper(payload)
  File "/home/astx/whatsbot/env/local/lib/python2.7/site-packages/yowsup2-2.4.48-py2.7.egg/yowsup/layers/__init__.py", line 75, in toUpper    self.__upper.receive(data)
  File "/home/astx/whatsbot/env/local/lib/python2.7/site-packages/yowsup2-2.4.48-py2.7.egg/yowsup/layers/coder/layer.py", line 35, in receive
    self.toUpper(node)  File "/home/astx/whatsbot/env/local/lib/python2.7/site-packages/yowsup2-2.4.48-py2.7.egg/yowsup/layers/__init__.py", line 75, in toUpper
    self.__upper.receive(data)
  File "/home/astx/whatsbot/env/local/lib/python2.7/site-packages/yowsup2-2.4.48-py2.7.egg/yowsup/layers/logger/layer.py", line 14, in receive
    self.toUpper(data)
  File "/home/astx/whatsbot/env/local/lib/python2.7/site-packages/yowsup2-2.4.48-py2.7.egg/yowsup/layers/__init__.py", line 75, in toUpper
    self.__upper.receive(data)
  File "/home/astx/whatsbot/env/local/lib/python2.7/site-packages/yowsup2-2.4.48-py2.7.egg/yowsup/layers/axolotl/layer.py", line 130, in receive
    self.onMessage(protocolTreeNode)
  File "/home/astx/whatsbot/env/local/lib/python2.7/site-packages/yowsup2-2.4.48-py2.7.egg/yowsup/layers/axolotl/layer.py", line 152, in onMessage    self.handleEncMessage(protocolTreeNode)
  File "/home/astx/whatsbot/env/local/lib/python2.7/site-packages/yowsup2-2.4.48-py2.7.egg/yowsup/layers/axolotl/layer.py", line 226, in handleEncMessage
    self.handleWhisperMessage(node)  File "/home/astx/whatsbot/env/local/lib/python2.7/site-packages/yowsup2-2.4.48-py2.7.egg/yowsup/layers/axolotl/layer.py", line 283, in handleWhisperMessage
    self.parseAndHandleMessageProto(encMessageProtocolEntity, plaintext[:-padding])
  File "/home/astx/whatsbot/env/local/lib/python2.7/site-packages/yowsup2-2.4.48-py2.7.egg/yowsup/layers/axolotl/layer.py", line 333, in parseAndHandleMessageProto    raise ValueError("Unhandled")
ValueError: Unhandled

After that error I didn't get any more messages. I don't know if it was by coincidence or it was just the tipping point that was reached after not sending more ACKs.

I opened then the CLI client around 3-4 times, and at last I received a batch of more messages, and the service works again. I don't know for how long.

I'm using the development branch of python-axolotl and @jlguardi's lastest master

e0xify commented 8 years ago

debug mode

http://pastebin.com/exAGf3Uq

(github is formating it shitty)

WTF started it again and got tons of shit like:

ERROR:≤┬┤↓┌▒≤␊↓▒│┌├┌↓┌▒≤␊:N ␊┼␍␊ ┐␊≤ °: <▒│┌├┌↓±┤↓␊┼␍␊┐␊≤┼▒└␊↓S␊┼␍␊K␊≤N▒└␊ ␉┘␊␌├ ▒├ █│7°63␉▒27632█>
DEBUG:≤┬┤↓┌▒≤␊↓┌±±␊↓┌▒≤␊:├│:
<␊␌␊␋├ ├="4917598261218↑1454█67894@±↓┤" ▒├␋␌␋▒┼├="491619204█521@↓┬░▒├▒↓┼␊├" ├="145916366█" ␋␍="3EB█49425F73D9A7█BA9" ├≤␊="␊├≤">
<␊├≤ ␌┤┼├="1" ├="145916366█" ┴="1" ␋␍="3EB█49425F73D9A7█BA9">
</␊├≤>
<␊±␋├▒├␋┼>
␉'\┼\│█2◆\│°6'
HEX:␉'█▒█26█°6'
</␊±␋├▒├␋┼>
</␊␌␊␋├>

e0xify commented 8 years ago

Next try i got:

root@h2476922:/home/scripts/wabot# Yowsup Cli client

Type /help for available commands

[offline]:[offline]:Auth: Logged in!
[connected]:ERROR:yowsup.layers.axolotl.layer:No sender key for: <axolotl.groups.senderkeyname.SenderKeyName object at 0x7feb0db42160>
ERROR:yowsup.layers.axolotl.layer:No sender key for: <axolotl.groups.senderkeyname.SenderKeyName object at 0x7feb0db422b0>
ERROR:yowsup.layers.axolotl.layer:No sender key for: <axolotl.groups.senderkeyname.SenderKeyName object at 0x7feb0db42470>
Traceback (most recent call last):
File "/usr/local/bin/yowsup-cli", line 5, in
pkg_resources.run_script('yowsup2==2.4.48', 'yowsup-cli')
File "/usr/lib/python3/dist-packages/pkg_resources.py", line 528, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/usr/lib/python3/dist-packages/pkg_resources.py", line 1394, in run_script
execfile(script_filename, namespace, namespace)
File "/usr/lib/python3/dist-packages/pkg_resources.py", line 55, in execfile
exec(compile(open(fn).read(), fn, 'exec'), globs, locs)
File "/usr/local/lib/python3.4/dist-packages/yowsup2-2.4.48-py3.4.egg/EGG-INFO/scripts/yowsup-cli", line 323, in
if not parser.process():
File "/usr/local/lib/python3.4/dist-packages/yowsup2-2.4.48-py3.4.egg/EGG-INFO/scripts/yowsup-cli", line 227, in process
self.startCmdline()
File "/usr/local/lib/python3.4/dist-packages/yowsup2-2.4.48-py3.4.egg/EGG-INFO/scripts/yowsup-cli", line 255, in startCmdline
stack.start()
File "/usr/local/lib/python3.4/dist-packages/yowsup2-2.4.48-py3.4.egg/yowsup/demos/cli/stack.py", line 27, in start
self.stack.loop(timeout = 0.5, discrete = 0.5)
File "/usr/local/lib/python3.4/dist-packages/yowsup2-2.4.48-py3.4.egg/yowsup/stacks/yowstack.py", line 187, in loop
asyncore.loop(_args, *_kwargs)
File "/usr/lib/python3.4/asyncore.py", line 208, in loop
poll_fun(timeout, map)
File "/usr/lib/python3.4/asyncore.py", line 153, in poll
read(obj)
File "/usr/lib/python3.4/asyncore.py", line 87, in read
obj.handle_error()
File "/usr/lib/python3.4/asyncore.py", line 83, in read
obj.handle_read_event()
File "/usr/lib/python3.4/asyncore.py", line 442, in handle_read_event
self.handle_read()
File "/usr/local/lib/python3.4/dist-packages/yowsup2-2.4.48-py3.4.egg/yowsup/layers/network/layer.py", line 88, in handle_read
self.receive(data)
File "/usr/local/lib/python3.4/dist-packages/yowsup2-2.4.48-py3.4.egg/yowsup/layers/network/layer.py", line 96, in receive
self.toUpper(data)
File "/usr/local/lib/python3.4/dist-packages/yowsup2-2.4.48-py3.4.egg/yowsup/layers/init.py", line 75, in toUpper
self.upper.receive(data)
File "/usr/local/lib/python3.4/dist-packages/yowsup2-2.4.48-py3.4.egg/yowsup/layers/stanzaregulator/layer.py", line 29, in receive
self.processReceived()
File "/usr/local/lib/python3.4/dist-packages/yowsup2-2.4.48-py3.4.egg/yowsup/layers/stanzaregulator/layer.py", line 49, in processReceived
self.toUpper(oneMessageData)
File "/usr/local/lib/python3.4/dist-packages/yowsup2-2.4.48-py3.4.egg/yowsup/layers/__init
.py", line 75, in toUpper
self.upper.receive(data)
File "/usr/local/lib/python3.4/dist-packages/yowsup2-2.4.48-py3.4.egg/yowsup/layers/auth/layer_crypt.py", line 65, in receive
self.toUpper(payload)
File "/usr/local/lib/python3.4/dist-packages/yowsup2-2.4.48-py3.4.egg/yowsup/layers/__init
.py", line 75, in toUpper
self.upper.receive(data)
File "/usr/local/lib/python3.4/dist-packages/yowsup2-2.4.48-py3.4.egg/yowsup/layers/coder/layer.py", line 35, in receive
self.toUpper(node)
File "/usr/local/lib/python3.4/dist-packages/yowsup2-2.4.48-py3.4.egg/yowsup/layers/__init
.py", line 75, in toUpper
self.upper.receive(data)
File "/usr/local/lib/python3.4/dist-packages/yowsup2-2.4.48-py3.4.egg/yowsup/layers/logger/layer.py", line 14, in receive
self.toUpper(data)
File "/usr/local/lib/python3.4/dist-packages/yowsup2-2.4.48-py3.4.egg/yowsup/layers/__init
.py", line 75, in toUpper
self.upper.receive(data)
File "/usr/local/lib/python3.4/dist-packages/yowsup2-2.4.48-py3.4.egg/yowsup/layers/axolotl/layer.py", line 130, in receive
self.onMessage(protocolTreeNode)
File "/usr/local/lib/python3.4/dist-packages/yowsup2-2.4.48-py3.4.egg/yowsup/layers/axolotl/layer.py", line 154, in onMessage
self.toUpper(protocolTreeNode)
File "/usr/local/lib/python3.4/dist-packages/yowsup2-2.4.48-py3.4.egg/yowsup/layers/__init
.py", line 75, in toUpper
self.upper.receive(data)
File "/usr/local/lib/python3.4/dist-packages/yowsup2-2.4.48-py3.4.egg/yowsup/layers/__init
.py", line 188, in receive
s.receive(data)
File "/usr/local/lib/python3.4/dist-packages/yowsup2-2.4.48-py3.4.egg/yowsup/layers/init.py", line 124, in receive
recv(node)
File "/usr/local/lib/python3.4/dist-packages/yowsup2-2.4.48-py3.4.egg/yowsup/layers/protocol_media/layer.py", line 44, in recvMessageStanza
self.toUpper(entity)
File "/usr/local/lib/python3.4/dist-packages/yowsup2-2.4.48-py3.4.egg/yowsup/layers/init.py", line 75, in toUpper
self.__upper.receive(data)
File "/usr/local/lib/python3.4/dist-packages/yowsup2-2.4.48-py3.4.egg/yowsup/layers/interface/interface.py", line 78, in receive
self.entity_callbacksentityType
File "/usr/local/lib/python3.4/dist-packages/yowsup2-2.4.48-py3.4.egg/yowsup/demos/cli/layer.py", line 517, in onMessage
messageOut = self.getMediaMessageBody(message)
File "/usr/local/lib/python3.4/dist-packages/yowsup2-2.4.48-py3.4.egg/yowsup/demos/cli/layer.py", line 543, in getMediaMessageBody
return self.getDownloadableMediaMessageBody(message)
File "/usr/local/lib/python3.4/dist-packages/yowsup2-2.4.48-py3.4.egg/yowsup/demos/cli/layer.py", line 550, in getDownloadableMediaMessageBody
f.write(message.getMediaContent())
TypeError: must be str, not bytearray

e0xify commented 8 years ago

started it again, got some messages finally.

at at the end:

[connected]:
ERROR:yowsup.layers.axolotl.layer:No sender key for: <axolotl.groups.senderkeyname.SenderKeyName object at 0x7f2a55cbe250>
ERROR:yowsup.layers.axolotl.layer:No sender key for: <axolotl.groups.senderkeyname.SenderKeyName object at 0x7f2a55cbe290>
ERROR:yowsup.layers.axolotl.layer:No sender key for: <axolotl.groups.senderkeyname.SenderKeyName object at 0x7f2a55cbe090>
ERROR:yowsup.layers.axolotl.layer:No valid sessionsBad Mac!
ERROR:yowsup.layers.axolotl.layer:No valid sessionsBad Mac!
ERROR:yowsup.layers.axolotl.layer:No sender key for: <axolotl.groups.senderkeyname.SenderKeyName object at 0x7f2a55deca10>
ERROR:yowsup.layers.axolotl.layer:No sender key for: <axolotl.groups.senderkeyname.SenderKeyName object at 0x7f2a55decc50>
ERROR:yowsup.layers.axolotl.layer:No such signedprekeyrecord! 2164
ERROR:yowsup.layers.axolotl.layer:No such signedprekeyrecord! 2164
ERROR:yowsup.layers.axolotl.layer:No such signedprekeyrecord! 2164
ERROR:yowsup.layers.axolotl.layer:No such signedprekeyrecord! 2164
ERROR:yowsup.layers.axolotl.layer:No valid sessionsBad Mac!
ERROR:yowsup.layers.axolotl.layer:No valid sessionsBad Mac!
ERROR:yowsup.layers.axolotl.layer:No sender key for: <axolotl.groups.senderkeyname.SenderKeyName object at 0x7f2a55decfd0>
ERROR:yowsup.layers.axolotl.layer:No sender key for: <axolotl.groups.senderkeyname.SenderKeyName object at 0x7f2a55dec990>
ERROR:yowsup.layers.axolotl.layer:No valid sessionsBad Mac!
ERROR:yowsup.layers.axolotl.layer:No sender key for: <axolotl.groups.senderkeyname.SenderKeyName object at 0x7f2a55dec990>
ERROR:yowsup.layers.axolotl.layer:No sender key for: <axolotl.groups.senderkeyname.SenderKeyName object at 0x7f2a55decfd0>
ERROR:yowsup.layers.axolotl.layer:No sender key for: <axolotl.groups.senderkeyname.SenderKeyName object at 0x7f2a55decc90>
ERROR:yowsup.layers.axolotl.layer:No sender key for: <axolotl.groups.senderkeyname.SenderKeyName object at 0x7f2a55dec990>
ERROR:yowsup.layers.axolotl.layer:No sender key for: <axolotl.groups.senderkeyname.SenderKeyName object at 0x7f2a55decfd0>
ERROR:yowsup.layers.axolotl.layer:No sender key for: <axolotl.groups.senderkeyname.SenderKeyName object at 0x7f2a55decc90>
ERROR:yowsup.layers.axolotl.layer:No valid sessionsBad Mac!
ERROR:yowsup.layers.axolotl.layer:No valid sessionsBad Mac!
ERROR:yowsup.layers.axolotl.layer:No sender key for: <axolotl.groups.senderkeyname.SenderKeyName object at 0x7f2a55decc90>
ERROR:yowsup.layers.axolotl.layer:No valid sessionsBad Mac!

jlguardi commented 8 years ago

@cfenollosa Yesterday I was fixing Bad Mac loops by sending ack after some retries. So message is discarted but app will continue running. So registration in Iphone will not be necesary (I'll pull tonight) The new issue is due to unmanaged encoded message type. Could you try to print on this line the message type?

jlguardi commented 8 years ago

@e0xify at 549 cli/layer.py se 'wb' instead of 'w' to fix media download in windows (sorry I've tested in Linux)

eduardobento commented 8 years ago

Great !! Works very well here !!

e0xify commented 8 years ago

@jlguardi using linux aswell dude.

anyway, i restarted the cli with -M option and debug like 20 times, everytime a few messages were recieved until it crashed again.

after like 10 minutes i recieved all messages with the hint:

WARNING:axolotl.sessionbuilder:We've already setup a session for this V3 message, letting bundled message fall through..

now it works again !

e0xify commented 8 years ago

worked until i was trying to send a picture. then it stoped recieving stuff...

cfenollosa commented 8 years ago

@jlguardi It was a text message from a group. That happened for the first text message I got from each group. Not for private messages, not for subsequent messages. Only for the first message of every group I am into.

However, I don't get the "bad mac" message, just at some point I stop receiving messages, then whatsapp disconnects me because it's not receiving ACKs

It's very strange. Right now I just launched the CLI client again and I got two messages, then silence again. Then this error:

(env)[520] 15:53:53 S host:~/whatsbot$ DEBUG:yowsup.stacks.yowstack:Initializing stack
DEBUG:yowsup.stacks.yowstack:Constructed Network Layer
DEBUG:yowsup.stacks.yowstack:Constructed Stanza Regulator Layer
DEBUG:yowsup.stacks.yowstack:Constructed Crypt Layer
DEBUG:yowsup.stacks.yowstack:Constructed Coder Layer
DEBUG:yowsup.stacks.yowstack:Constructed Logger Layer
DEBUG:yowsup.stacks.yowstack:Constructed Axolotl Layer
DEBUG:yowsup.stacks.yowstack:Constructed Authentication Layer - Messages Layer - Receipt Layer - Ack Layer - Presence Layer - Ib Layer - Iq Layer - notification Ib Layer - Iq Layer - Chatstate Layer - call Layer - Groups Iq Layer - Media
Layer - Privacy Layer - Profiles Layer
DEBUG:yowsup.stacks.yowstack:Constructed CLI Interface Layer
Yowsup Cli client
==================
Type /help for available commands

[offline]:DEBUG:yowsup.layers.network.layer:Connecting to e4.whatsapp.net:443
DEBUG:yowsup.layers.logger.layer:tx:
<stream:features>
</stream:features>

DEBUG:yowsup.layers.logger.layer:tx:
<auth passive="false" user="34688929664" mechanism="WAUTH-2">
>
</ib>

DEBUG:yowsup.layers.logger.layer:rx:
<receipt participant="34620756395@s.whatsapp.net" offline="3" from="34620756395-1439983838@g.us" id="1459259295-5" t="1459259296">
</receipt>

DEBUG:yowsup.layers.logger.layer:tx:
<ack to="34620756395-1439983838@g.us" id="1459259295-5" class="receipt">
</ack>

DEBUG:yowsup.layers.logger.layer:rx:
<receipt participant="34622800200@s.whatsapp.net" offline="3" from="34620756395-1439983838@g.us" id="1459259295-5" t="1459259297">
</receipt>

DEBUG:yowsup.layers.logger.layer:tx:
<ack to="34620756395-1439983838@g.us" id="1459259295-5" class="receipt">
</ack>

DEBUG:yowsup.layers.logger.layer:rx:
<receipt participant="41798746839@s.whatsapp.net" offline="3" from="34620756395-1439983838@g.us" id="1459259295-5" t="1459259298">
</receipt>

DEBUG:yowsup.layers.logger.layer:tx:
<ack to="34620756395-1439983838@g.us" id="1459259295-5" class="receipt">
</ack>

DEBUG:yowsup.layers.logger.layer:rx:
<receipt participant="34620756395@s.whatsapp.net" t="1459259300" from="34620756395-1439983838@g.us" offline="3" type="read" id="1459259295-5">
</receipt>

DEBUG:yowsup.layers.logger.layer:tx:
<ack to="34620756395-1439983838@g.us" type="read" id="1459259295-5" class="receipt">
</ack>

DEBUG:yowsup.layers.logger.layer:rx:
<receipt participant="34639057486@s.whatsapp.net" t="1459259460" from="34639057486-1300625051@g.us" offline="3" type="read" id="1459258755-1">
</receipt>

DEBUG:yowsup.layers.logger.layer:tx:
<ack to="34639057486-1300625051@g.us" type="read" id="1459258755-1" class="receipt">
</ack>

DEBUG:yowsup.layers.logger.layer:rx:
<receipt participant="34622800200@s.whatsapp.net" t="1459259523" from="34620756395-1439983838@g.us" offline="1" type="read" id="1459259295-5">
</receipt>

DEBUG:yowsup.layers.logger.layer:tx:
<ack to="34620756395-1439983838@g.us" type="read" id="1459259295-5" class="receipt">
</ack>

DEBUG:yowsup.layers.logger.layer:rx:
<receipt participant="34653791309@s.whatsapp.net" t="1459259769" from="34639057486-1300625051@g.us" offline="1" type="read" id="1459258755-1">
</receipt>

DEBUG:yowsup.layers.logger.layer:tx:
<ack to="34639057486-1300625051@g.us" type="read" id="1459258755-1" class="receipt">
</ack>

DEBUG:yowsup.layers.logger.layer:rx:
<message partµÌlþ2ç{·úÓñ/ØÇ!÷eä90@s.whatsapp.net" t="1459261226" from="34639057486-1300625051@g.us" offline="0" type="text" id="6B2351756D2878E034" notify="Aupa Erreala!">
*ÑçäAtiHä~j×>" type="pkmsg" v="2d¬2?fß?Ä){2zXh7
"³3
!áWæÇUßZc篼§MùeãHØåô< í ^Kx"ýФÜs7øxñn
                                       ¸Ù
                                         z\ªö}!qé/|GHFÍÏÛP²ØC"ôlõ o!XîÇ¢/¼Iï÷dk1IO³8nW ÿ=÷à
                                                                                            ý9\-.³w6ú³Eµ¯â¿æà
                                                                                                             äw¨g2¢k%ót®b(JÿBJÊy:_v}8TB¢á(Üb0¤Ø
HEX:3308f79687071221058dc96e9e41746948e47e6ad73e8db5cc6cfe321ce7937b14b7fad3f12fd8c71a1a2105f765e41a098464ac10323f6688df3f15c4297b327a5868370d2ad1e7e4858f0622b301330a2105e157e6c755df5a63e7afbca74df965e348d8e597f43c9b0420ed1e19a05e4b781000
1800228001fdd0a4dc731937f878f16e0584b8d91b449b4d7a0f5c12aa18f67d21711de92f7c474846cdcf9bdb50b2d84322f46cf59613206f2158eec7a22fbc49eff7646b319a97494fb3388e6e57c2a011ff3df7e084fd395c1c2d2eb3770f36fab345b5af9b2ee2bfe6e084e4771aa86732a26b25f3
74ae62284aff424aca051d793a5f767d3854429ca2e128dc6230a4d801
</enc>
</message>

[34652578090/34639057486-1300625051@g.us(29-03-2016 16:20)]:[6B2351756D2878E034] Jajaja
DEBUG:yowsup.layers.logger.layer:tx:
<receipt participant="34652578090@s.whatsapp.net" type="read" id="6B2351756D2878E034" to="34639057486-1300625051@g.us">
</receipt>

Message 6B2351756D2878E034: Sent delivered receipt and Read
[connected]:
DEBUG:yowsup.layers.logger.layer:rx:
<message partµÌlþ2ç{·úÓñ/ØÇ!÷eä90@s.whatsapp.net" t="1459261226" from="34639057486-1300625051@g.us" offline="0" type="text" id="084CAAEF093FCFA4AB" notify="Aupa Erreala!">
*ÑçäAtiHä~j×>" type="pkmsg" v="2d¬2?fß?Ä){2zXh7
"Ó3
!áWæÇUßZc篼§MùeãHØåô< í ^Kx"   °

</enc>
</message>

WARNING:axolotl.sessionbuilder:We've already setup a session for this V3 message, letting bundled message fall through...
Traceback (most recent call last):
  File "env/bin/yowsup-cli", line 4, in <module>
    __import__('pkg_resources').run_script('yowsup2==2.4.48', 'yowsup-cli')
  File "/home/astx/whatsbot/env/local/lib/python2.7/site-packages/pkg_resources.py", line 534, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/home/astx/whatsbot/env/local/lib/python2.7/site-packages/pkg_resources.py", line 1438, in run_script
    execfile(script_filename, namespace, namespace)
  File "/home/astx/whatsbot/env/lib/python2.7/site-packages/yowsup2-2.4.48-py2.7.egg/EGG-INFO/scripts/yowsup-cli", line 323, in <module>
    if not parser.process():
  File "/home/astx/whatsbot/env/lib/python2.7/site-packages/yowsup2-2.4.48-py2.7.egg/EGG-INFO/scripts/yowsup-cli", line 227, in process
    self.startCmdline()
  File "/home/astx/whatsbot/env/lib/python2.7/site-packages/yowsup2-2.4.48-py2.7.egg/EGG-INFO/scripts/yowsup-cli", line 255, in startCmdline
    stack.start()
  File "/home/astx/whatsbot/env/local/lib/python2.7/site-packages/yowsup2-2.4.48-py2.7.egg/yowsup/demos/cli/stack.py", line 27, in start
    self.stack.loop(timeout = 0.5, discrete = 0.5)
  File "/home/astx/whatsbot/env/local/lib/python2.7/site-packages/yowsup2-2.4.48-py2.7.egg/yowsup/stacks/yowstack.py", line 187, in loop
    asyncore.loop(*args, **kwargs)
  File "/usr/lib/python2.7/asyncore.py", line 216, in loop
    poll_fun(timeout, map)
  File "/usr/lib/python2.7/asyncore.py", line 156, in poll
    read(obj)
  File "/usr/lib/python2.7/asyncore.py", line 87, in read
    obj.handle_error()
  File "/usr/lib/python2.7/asyncore.py", line 83, in read
    obj.handle_read_event()
  File "/usr/lib/python2.7/asyncore.py", line 449, in handle_read_event
    self.handle_read()
  File "/home/astx/whatsbot/env/local/lib/python2.7/site-packages/yowsup2-2.4.48-py2.7.egg/yowsup/layers/network/layer.py", line 88, in handle_read
    self.receive(data)
  File "/home/astx/whatsbot/env/local/lib/python2.7/site-packages/yowsup2-2.4.48-py2.7.egg/yowsup/layers/network/layer.py", line 96, in receive
    self.toUpper(data)
  File "/home/astx/whatsbot/env/local/lib/python2.7/site-packages/yowsup2-2.4.48-py2.7.egg/yowsup/layers/__init__.py", line 75, in toUpper
    self.__upper.receive(data)
  File "/home/astx/whatsbot/env/local/lib/python2.7/site-packages/yowsup2-2.4.48-py2.7.egg/yowsup/layers/stanzaregulator/layer.py", line 29, in receive
    self.processReceived()
  File "/home/astx/whatsbot/env/local/lib/python2.7/site-packages/yowsup2-2.4.48-py2.7.egg/yowsup/layers/stanzaregulator/layer.py", line 49, in processReceived
    self.toUpper(oneMessageData)
  File "/home/astx/whatsbot/env/local/lib/python2.7/site-packages/yowsup2-2.4.48-py2.7.egg/yowsup/layers/__init__.py", line 75, in toUpper
    self.__upper.receive(data)
  File "/home/astx/whatsbot/env/local/lib/python2.7/site-packages/yowsup2-2.4.48-py2.7.egg/yowsup/layers/auth/layer_crypt.py", line 65, in receive
    self.toUpper(payload)
  File "/home/astx/whatsbot/env/local/lib/python2.7/site-packages/yowsup2-2.4.48-py2.7.egg/yowsup/layers/__init__.py", line 75, in toUpper
    self.__upper.receive(data)
  File "/home/astx/whatsbot/env/local/lib/python2.7/site-packages/yowsup2-2.4.48-py2.7.egg/yowsup/layers/coder/layer.py", line 35, in receive
    self.toUpper(node)
  File "/home/astx/whatsbot/env/local/lib/python2.7/site-packages/yowsup2-2.4.48-py2.7.egg/yowsup/layers/__init__.py", line 75, in toUpper
    self.__upper.receive(data)
  File "/home/astx/whatsbot/env/local/lib/python2.7/site-packages/yowsup2-2.4.48-py2.7.egg/yowsup/layers/logger/layer.py", line 14, in receive
    self.toUpper(data)
  File "/home/astx/whatsbot/env/local/lib/python2.7/site-packages/yowsup2-2.4.48-py2.7.egg/yowsup/layers/__init__.py", line 75, in toUpper
    self.__upper.receive(data)
  File "/home/astx/whatsbot/env/local/lib/python2.7/site-packages/yowsup2-2.4.48-py2.7.egg/yowsup/layers/axolotl/layer.py", line 130, in receive
    self.onMessage(protocolTreeNode)
  File "/home/astx/whatsbot/env/local/lib/python2.7/site-packages/yowsup2-2.4.48-py2.7.egg/yowsup/layers/axolotl/layer.py", line 152, in onMessage
    self.handleEncMessage(protocolTreeNode)
  File "/home/astx/whatsbot/env/local/lib/python2.7/site-packages/yowsup2-2.4.48-py2.7.egg/yowsup/layers/axolotl/layer.py", line 224, in handleEncMessage
    self.handlePreKeyWhisperMessage(node)
  File "/home/astx/whatsbot/env/local/lib/python2.7/site-packages/yowsup2-2.4.48-py2.7.egg/yowsup/layers/axolotl/layer.py", line 269, in handlePreKeyWhisperMessage
    self.parseAndHandleMessageProto(pkMessageProtocolEntity, plaintext[:-padding])
  File "/home/astx/whatsbot/env/local/lib/python2.7/site-packages/yowsup2-2.4.48-py2.7.egg/yowsup/layers/axolotl/layer.py", line 322, in parseAndHandleMessageProto
    self.handleConversationMessage(node, m.conversation)
  File "/home/astx/whatsbot/env/local/lib/python2.7/site-packages/yowsup2-2.4.48-py2.7.egg/yowsup/layers/axolotl/layer.py", line 346, in handleConversationMessage
    self.toUpper(messageNode)
  File "/home/astx/whatsbot/env/local/lib/python2.7/site-packages/yowsup2-2.4.48-py2.7.egg/yowsup/layers/__init__.py", line 75, in toUpper
    self.__upper.receive(data)
  File "/home/astx/whatsbot/env/local/lib/python2.7/site-packages/yowsup2-2.4.48-py2.7.egg/yowsup/layers/__init__.py", line 188, in receive
    s.receive(data)
  File "/home/astx/whatsbot/env/local/lib/python2.7/site-packages/yowsup2-2.4.48-py2.7.egg/yowsup/layers/__init__.py", line 124, in receive
    recv(node)
  File "/home/astx/whatsbot/env/local/lib/python2.7/site-packages/yowsup2-2.4.48-py2.7.egg/yowsup/layers/protocol_messages/layer.py", line 21, in recvMessageStanza
    self.toUpper(entity)
  File "/home/astx/whatsbot/env/local/lib/python2.7/site-packages/yowsup2-2.4.48-py2.7.egg/yowsup/layers/__init__.py", line 75, in toUpper
    self.__upper.receive(data)
  File "/home/astx/whatsbot/env/local/lib/python2.7/site-packages/yowsup2-2.4.48-py2.7.egg/yowsup/layers/interface/interface.py", line 78, in receive
    self.entity_callbacks[entityType](entity)
  File "/home/astx/whatsbot/env/local/lib/python2.7/site-packages/yowsup2-2.4.48-py2.7.egg/yowsup/demos/cli/layer.py", line 529, in onMessage
    MESSAGE_ID=message.getId()
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe1' in position 6: ordinal not in range(128)
e0xify commented 8 years ago

Yea same here. It just stops randomly like it gets stuck somehow

pag16 commented 8 years ago

what is the correlation between iPhone and this issue?

jlguardi commented 8 years ago

@cfenollosa Your issue is due to lower layer!! See that xml is corrupted and it isn't an axolotl layer issue. Could it be a network transfer corruption? I don't know. I'll ignore this issue by now if there aren't more occurrences. @pag16 Yes, Bad mac occurs with Iphone 2.12.16. So I'll skip the loop and close this issue.

e0xify commented 8 years ago

@jlguardi got the same error like @cfenollosa . 1:1 same stuff

pag16 commented 8 years ago

@jlguardi so is bad mac error related to stuff getting stuck? i m facing that the client is stuck and does not respond .. and after 5 minutes/ 20 minutes (whatever random time) it will respond again ..

freelo commented 8 years ago

Hi, I noticed that group receipt acks do not include the originating participant. Maybe this is related to the message delay issue?

--- a/yowsup/layers/protocol_receipts/protocolentities/receipt_incoming.py
+++ b/yowsup/layers/protocol_receipts/protocolentities/receipt_incoming.py
@@ -100,7 +100,7 @@ class IncomingReceiptProtocolEntity(ReceiptProtocolEntity):
         return out

     def ack(self):
-        return OutgoingAckProtocolEntity(self.getId(), "receipt", self.getType(), self.getFrom())
+        return OutgoingAckProtocolEntity(self.getId(), "receipt", self.getType(), self.getFrom(), self.getParticipant())
pag16 commented 8 years ago

@jlguardi so reading all the threads related to this discussion ... i think there are two issues a. there is issue with iPhone app - 2.12.16 - i have noticed this problem as well .. b. there is some other issue where sometime (this does not happen continuously) messages are not received by yowsup and the system just gets stuck.

do we believe a and b are same problems? do we know how to solve (b)? what help can i do?

jlguardi commented 8 years ago

I'm really lost. The corrupt message could be due to coder layer (decoder.py). There are many changes and I can't reproduce this issue and/or check code. I add @tgalal to be notified about that.

jlguardi commented 8 years ago

Initial bug fixed. New one tracked in #17.