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

Whatsapp decode binary error, invalid string with tag 174 #1094

Closed
thesaadmemon opened this issue Apr 18, 2020 · 3 comments
Closed

Whatsapp decode binary error, invalid string with tag 174 #1094

thesaadmemon opened this issue Apr 18, 2020 · 3 comments
Labels

Comments

@thesaadmemon
Copy link

thesaadmemon commented Apr 18, 2020

Describe the bug
Whatsapp throws error while running whatsapp and telegram bridge.
Output:

[0003] ERROR whatsapp: error processing data: error decoding binary: could not decode binary: invalid string with tag 174

To Reproduce
I tried to change the waVersion in whatsapp.go file to this conn.SetClientVersion(0, 4, 1307), as suggested in other forums. I also tried valued like (2080, 2081, 2088) but none of them worked.

Also tried previous stable matterbridge versions.

Expected behavior
Whatsapp continues to throw the same error. On the other hand, whatsapp qr scan works properly.

Screenshots/debug logs
[0000] INFO main: Enabling debug logging.
[0000] INFO main: Running version 1.17.3-dev
[0000] INFO main: WARNING: THIS IS A DEVELOPMENT VERSION. Things may break.
[0000] INFO router: Parsing gateway gateway1
[0000] INFO router: Starting bridge: whatsapp.mywhatsapp
[0000] DEBUG whatsapp: Connecting to WhatsApp..
[0001] DEBUG whatsapp: WhatsApp connection successful
[0001] DEBUG whatsapp: Restoring WhatsApp session..
[0003] DEBUG whatsapp: Session restored successfully!
[0003] ERROR whatsapp: error processing data: error decoding binary: could not decode binary: invalid string with tag 174
[0004] INFO whatsapp: whatsapp.mywhatsapp: joining -@g.us (ID: -@g.uswhatsapp.mywhatsapp)
[0004] INFO router: Starting bridge: telegram.mytelegram
[0004] INFO telegram: Connecting
[0004] DEBUG whatsapp: Getting user avatars..
[0005] INFO telegram: Connection succeeded
[0005] INFO telegram: telegram.mytelegram: joining *************** (ID: w*************** telegram.mytelegram)
[0005] INFO main: Gateway(s) started succesfully. Now relaying messages
[0247] DEBUG whatsapp: Finished getting avatars..

Environment (please complete the following information):

  • OS: Ubuntu 18.04
  • Matterbridge version: 1.17.3-dev

Additional context
[whatsapp.mywhatsapp]
Number="+**********"
SessionFile="session-48111222336.gob"
QrOnWhiteTerminal=false
RemoteNickFormat="[{PROTOCOL}] @{NICK}: "

[telegram.mytelegram]

Token="1**********:****************************************"
RemoteNickFormat="[{PROTOCOL}] <{NICK}> "

[[gateway]]
name="gateway1"
enable=true

[[gateway.inout]]
account="whatsapp.mywhatsapp"
channel="-@g.us"

[[gateway.inout]]
account="telegram.mytelegram"
channel="**********"

@42wim
Copy link
Owner

42wim commented Apr 18, 2020

Throws error and stops working? Or throwing error and everything works?

Also reference here Rhymen/go-whatsapp#187

@42wim 42wim added the waiting for feedback Further information is requested label Apr 18, 2020
@thesaadmemon
Copy link
Author

Throwing error and still works. The issue is specifically with Whatsapp only. Other bridges are working normal.

@42wim 42wim removed the waiting for feedback Further information is requested label Apr 19, 2020
@42wim 42wim closed this as completed in 4d93a77 Apr 19, 2020
@42wim
Copy link
Owner

42wim commented Apr 19, 2020

Fixed in master

@42wim 42wim mentioned this issue Apr 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants