yowsup icon indicating copy to clipboard operation
yowsup copied to clipboard

Stream error

Open ResonantWave opened this issue 11 years ago • 32 comments

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>

ResonantWave avatar Mar 20 '15 14:03 ResonantWave

not sending ack after receiving notification or message

CODeRUS avatar Mar 20 '15 14:03 CODeRUS

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

ResonantWave avatar Mar 20 '15 14:03 ResonantWave

check previous log and see after which messages ack is not sent.

CODeRUS avatar Mar 20 '15 14:03 CODeRUS

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>

ResonantWave avatar Mar 20 '15 14:03 ResonantWave

not this one. acks are sending for <message> and <notification> nodes

CODeRUS avatar Mar 20 '15 14:03 CODeRUS

Sorry for my incompetence then, but I don't know how to look.

ResonantWave avatar Mar 20 '15 14:03 ResonantWave

look from beginnig :)

CODeRUS avatar Mar 20 '15 14:03 CODeRUS

What should I look for?

ResonantWave avatar Mar 20 '15 14:03 ResonantWave

you should look for nodes with message and notification tags

CODeRUS avatar Mar 20 '15 14:03 CODeRUS

seems you just didn't added YowAckProtocolLayer

CODeRUS avatar Mar 20 '15 14:03 CODeRUS

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

ResonantWave avatar Mar 20 '15 14:03 ResonantWave

It is strange, because the last message I can see in the log has an ack. After that, some receipt and finally the crash

ResonantWave avatar Mar 20 '15 15:03 ResonantWave

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">

ResonantWave avatar Mar 20 '15 15:03 ResonantWave

So, any ideas?

ResonantWave avatar Mar 20 '15 15:03 ResonantWave

i got this error too

imsgx avatar Mar 29 '15 01:03 imsgx

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?

lcmeyer37 avatar Apr 17 '15 20:04 lcmeyer37

#626

tgalal avatar Apr 19 '15 16:04 tgalal

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

gonzalosr avatar Apr 30 '15 10:04 gonzalosr

I also have this problem with php port - https://github.com/mgp25/Chat-API/issues/76

trx222 avatar May 01 '15 10:05 trx222

I think the error is that now ACKs MUST contain the to="[email protected]" attribute.

aesedepece avatar May 01 '15 13:05 aesedepece