Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to sync app state after notification: failed to decode app state regular patches: failed to verify patch v564: mismatching LTHash #651

Open
brunoaduarte opened this issue Aug 29, 2024 · 2 comments

Comments

@brunoaduarte
Copy link

@tulir , I'm getting this error after I created a label via WhatsApp Web.

04:16:22.460 [Client/Recv DEBUG] <notification from="s.whatsapp.net" id="484950606" t="1724915782" type="server_sync"><collection name="regular" version="588"/></notification>
04:16:22.466 [Client DEBUG] Got server sync notification that app state regular has updated to version 588
04:16:22.466 [Client/Send DEBUG] <ack class="notification" id="484950606" to="s.whatsapp.net" type="server_sync"/>
04:16:22.467 [Client/Send DEBUG] <iq id="103.122-15" to="s.whatsapp.net" type="set" xmlns="w:sync:app:state"><sync><collection name="regular" return_snapshot="false" version="563"/></sync></iq>
04:16:22.828 [Client/Recv DEBUG] <iq from="s.whatsapp.net" id="103.122-15" type="result">
  <sync>
    <collection name="regular">
      <patches>
        <patch><!-- 255 bytes --></patch>
        <patch><!-- 443 bytes --></patch>
        <patch><!-- 255 bytes --></patch>
        <patch><!-- 901 bytes --></patch>
        <patch><!-- 613 bytes --></patch>
        <patch><!-- 697 bytes --></patch>
        <patch><!-- 713 bytes --></patch>
        <patch><!-- 597 bytes --></patch>
        <patch><!-- 647 bytes --></patch>
        <patch><!-- 1225 bytes --></patch>
        <patch><!-- 613 bytes --></patch>
        <patch><!-- 917 bytes --></patch>
        <patch><!-- 1087 bytes --></patch>
        <patch><!-- 663 bytes --></patch>
        <patch><!-- 647 bytes --></patch>
        <patch><!-- 613 bytes --></patch>
        <patch><!-- 713 bytes --></patch>
        <patch><!-- 647 bytes --></patch>
        <patch><!-- 647 bytes --></patch>
        <patch><!-- 1053 bytes --></patch>
        <patch><!-- 663 bytes --></patch>
        <patch><!-- 867 bytes --></patch>
        <patch><!-- 679 bytes --></patch>
        <patch><!-- 1127 bytes --></patch>
        <patch><!-- 581 bytes --></patch>
      </patches>
    </collection>
  </sync>
</iq>
04:16:22.831 [Client ERROR] Failed to sync app state after notification: failed to decode app state regular patches: failed to verify patch v564: mismatching LTHash

Tried disconnecting the linked device and rescanning the QR code with whatsmeow, but the error persists.

@George-Seven
Copy link

Apparently not a whatsmeow bug - #519 (comment)

You need to patch this line of whatsmeow yourself -

4d2f98c

@brunoaduarte
Copy link
Author

Apparently not a whatsmeow bug - #519 (comment)

You need to patch this line of whatsmeow yourself -

4d2f98c

This can be a workaround, but have you seen this comment?

Disabling validation is not a solution, the bug should be fixed instead

#519 (comment)

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants