Closed thesaadmemon closed 4 years ago
Throws error and stops working? Or throwing error and everything works?
Also reference here https://github.com/Rhymen/go-whatsapp/issues/187
Throwing error and still works. The issue is specifically with Whatsapp only. Other bridges are working normal.
Fixed in master
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):
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="**"