Stream error
I am getting a stream error few minutes after starting yowsup. I am also using the sample app provided. I think it is related with ack.
<stream:error>
<ack>
</ack>
</stream:error>
not sending ack after receiving notification or message
I assumed that, but I don't know what exactly to do. I'm using the sample code, and apparently it should send ack's
check previous log and see after which messages ack is not sent.
Just before the ack error:
<receipt participant="@s.whatsapp.net" t="1426860437" from="@g.us" id="1426860408-7" type="read">
<list>
<item id="1426860307-1">
</item>
<item id="1426860308-3">
</item>
</list>
</receipt>
not this one. acks are sending for <message> and <notification> nodes
Sorry for my incompetence then, but I don't know how to look.
look from beginnig :)
What should I look for?
you should look for nodes with message and notification tags
seems you just didn't added YowAckProtocolLayer
Yes, I did add it. It is just the sample app (https://github.com/tgalal/yowsup/wiki/Yowsup-2.0-Sample-app). It includes the AckProtocolLayer in run.py
It is strange, because the last message I can see in the log has an ack. After that, some receipt and finally the crash
I don't know if this is normal, but there are 2 types of ack
<ack type="delivery" id="1426857499-27" class="receipt">
and
<ack count="21" t="1426860377" from="@g.us" id="1426860376-6" class="message">
So, any ideas?
i got this error too
I get this error for 'videos' and 'audio' media types. I notice that in Echo sample app and yowsup-cli when I receive this type of media I just get one grey check, so WhatsApp servers keep sending this data to my client and then it crashes with that error. Does anyone know how to implement receipt and ack for audio and video media types?
#626
Same problem here, but it seems to be a problem with delivery receipt acks.
Updated to the master branch today to no avail, maybe I am missing something in my code.
here is the full debug log:
DEBUG 30-04-2015 12:22 layer.py:13 : rx:
<receipt offline="3" retry="3" from="[email protected]" id="1430386282-39" t="1430386165">
</receipt>
DEBUG 30-04-2015 12:22 layer.py:8 : tx:
<ack class="receipt" type="delivery" id="1430386282-39">
</ack>
DEBUG 30-04-2015 12:22 layer.py:13 : rx:
<ib from="s.whatsapp.net">
<offline count="1">
</offline>
</ib>
DEBUG 30-04-2015 12:23 xmlstream.py:1683: Scheduled event: Session timeout check: ()
DEBUG 30-04-2015 12:23 layer.py:13 : rx:
<stream:error>
<ack>
</ack>
</stream:error>
Thanks in advance for any help on this issue
I also have this problem with php port - https://github.com/mgp25/Chat-API/issues/76
I think the error is that now ACKs MUST contain the to="[email protected]" attribute.