Closed allilengyi closed 3 years ago
I'm newbie. Yesterday I set up for my first time a bridge Whatsapp<>Telegram and I had issues sending messages from WhatsApp to Telegram but not from Telegram to WhatsApp. In my case I discovered that WhatsApp web shows a notice about the new feature of auto-deleting messages 7 days old. This notice I think that is not yet supported by matterbridge. When I disabled this setting on my test group matterbridge begins running fine. Think about it, maybe is also your issue. (I my case, Winx64 and also v1.20 latest release)
If I enable auto-delete, then I get in the logs
[0018] ERROR whatsapp: [HandleError:bridge/whatsapp/handlers.go:39] message type not implemented
when sending a message. When disabled again, nothing is written to the log file.
The whatsapp library has been upgraded in matterbridge v1.21.0 which probably fixed your issue. (https://github.com/Rhymen/go-whatsapp/pull/504)
Can you try and reopen if still an issue.
the issue/behavior is still the same
$matterbridge -version
version: 1.21.0 cf13fff7
and
[0002] INFO router: [Start:gateway/router.go:75] Starting bridge: whatsapp.wabot
[0002] DEBUG whatsapp: [Connect:bridge/whatsapp/whatsapp.go:64] Connecting to WhatsApp..
[0002] DEBUG whatsapp: [Connect:bridge/whatsapp/whatsapp.go:73] WhatsApp connection successful
[0002] DEBUG whatsapp: [restoreSession:bridge/whatsapp/helpers.go:83] Restoring WhatsApp session..
[0002] DEBUG whatsapp: [restoreSession:bridge/whatsapp/helpers.go:91] Session restored successfully!
[0003] ERROR whatsapp: [HandleError:bridge/whatsapp/handlers.go:40] message type not implemented
[0003] ERROR whatsapp: [HandleError:bridge/whatsapp/handlers.go:40] message type not implemented
[0003] ERROR whatsapp: [HandleError:bridge/whatsapp/handlers.go:40] message type not implemented
[0003] ERROR whatsapp: [HandleError:bridge/whatsapp/handlers.go:40] message type not implemented
[0003] ERROR whatsapp: [HandleError:bridge/whatsapp/handlers.go:40] message type not implemented
[0005] ERROR whatsapp: [HandleError:bridge/whatsapp/handlers.go:40] message type not implemented
[0005] ERROR whatsapp: [HandleError:bridge/whatsapp/handlers.go:40] message type not implemented
Same error here...
$ matterbridge -version
version: 1.21.0 cf13fff7
$ matterbridge
[0006] INFO router: Starting bridge: rocketchat.bridge
[0006] INFO rocketchat: Connecting using login/password (sending and receiving)
[0007] INFO rocketchat: Connection succeeded
[0007] INFO rocketchat: rocketchat.bridge: joining chat-whats-bridge (ID: chat-whats-bridgerocketchat.bridge)
[0007] INFO main: Gateway(s) started succesfully. Now relaying messages
[0007] ERROR whatsapp: message type not implemented
[0007] ERROR whatsapp: message type not implemented
[0007] ERROR whatsapp: message type not implemented
[0007] ERROR whatsapp: message type not implemented
...
$ matterbridge -debug
[0002] DEBUG whatsapp: [func1:bridge/whatsapp/whatsapp.go:112] Getting user avatars..
[0002] INFO router: [Start:gateway/router.go:75] Starting bridge: rocketchat.bridge
[0002] INFO rocketchat: [Connect:bridge/rocketchat/rocketchat.go:73] Connecting using login/password (sending and receiving)
[0002] DEBUG rocketchat: [apiLogin:bridge/rocketchat/helpers.go:59] handling apiLogin()
[0002] INFO rocketchat: [apiLogin:bridge/rocketchat/helpers.go:84] Connection succeeded
[0002] INFO rocketchat: [joinChannels:bridge/bridge.go:77] rocketchat.bridge: joining chat-whats-bridge (ID: chat-whats-bridgerocketchat.bridge)
[0002] DEBUG rocketchat: [handleRocket:bridge/rocketchat/handlers.go:14] Choosing login/password based receiving
[0002] INFO main: [main:matterbridge.go:70] Gateway(s) started succesfully. Now relaying messages
[0004] ERROR whatsapp: [HandleError:bridge/whatsapp/handlers.go:40] message type not implemented
[0004] ERROR whatsapp: [HandleError:bridge/whatsapp/handlers.go:40] message type not implemented
[0004] ERROR whatsapp: [HandleError:bridge/whatsapp/handlers.go:40] message type not implemented
[0004] ERROR whatsapp: [HandleError:bridge/whatsapp/handlers.go:40] message type not implemented
[0004] ERROR whatsapp: [HandleError:bridge/whatsapp/handlers.go:40] message type not implemented
[0004] ERROR whatsapp: [HandleError:bridge/whatsapp/handlers.go:40] message type not implemented
...
@adrianovieira @allilengyi Can you try a dev build from here: ~https://github.com/42wim/matterbridge/actions/runs/506061796#artifacts~ https://github.com/42wim/matterbridge/actions/runs/506180640#artifacts ?
Also if you disable auto-delete on your current, does it actually work?
@adrianovieira @allilengyi Can you try a dev build from here: ~https://github.com/42wim/matterbridge/actions/runs/506061796#artifacts~ https://github.com/42wim/matterbridge/actions/runs/506180640#artifacts ?
Also if you disable auto-delete on your current, does it actually work?
I am no sure how to "disable auto-delete"... give me a tip to setup it, please!
@adrianovieira (I have no idea about the auto-delete, I don't use whatsapp myself)
Can you confirm that no messages get through? Other users are telling me they sometimes also got those messages, but it has no impact, the bridge just works.
$ matterbridge -debug
[0000] INFO main: [setupLogger:matterbridge.go:106] Enabling debug logging.
[0000] INFO main: [main:matterbridge.go:46] Running version 1.21.0 cf13fff7
2021/01/26 11:48:41 too many open files
$ matterbridge-v1.21.0-12-gb3c0c09b-linux-amd64 -debug
[0000] INFO main: [setupLogger:matterbridge/matterbridge.go:106] Enabling debug logging.
[0000] INFO main: [main:matterbridge/matterbridge.go:46] Running version 1.21.1-dev b3c0c09b
[0000] INFO main: [main:matterbridge/matterbridge.go:48] WARNING: THIS IS A DEVELOPMENT VERSION. Things may break.
2021/01/26 11:48:30 too many open files
another infos:
$ cat /proc/sys/fs/file-max
9223372036854775807
$ ulimit -Hn
524288
$ ulimit -Sn
1024
@adrianovieira how many bridges / gateways do you have ?
I think they are two
RocketChat (inout to one channel) WhatsApp (inout to one group)
This is what I have so far.
Hi concerning to "open files" comment, I don't know why it happen or how to reproduce it.
So, maybe you can ignore it!
The same error here related to whatsapp-telegram like the first person who opened the issue. Attached the log.
level=error msg="message type not implemented" prefix=whatsapp
I get the messages from telegram in whatsapp, but no the other way around.
Running on Synology, docker latest version of matterbridge 1.22.
The same error I got with version 1.21
I tested earlier the integration without whapsapp, among mattermost, matrix and telegram integration and all are working fine.
_matterbridge_matterbridge_1_logs.txt
Later edit: solved: I tested in first phase with my number. Telegram doesn't send the messages to whatsapp bot (my number in this case), which is somehow obviously.
@gpopesc you fixed the issue?
yes, it is fixed. everything is working fine. I would call the errors as standard, the relay is working fine. I still have them in log, but I think the last message is important: Gateway(s) started succesfully. Now relaying messages
When I tested I used my phone number (I haven't any spare sims) and I didn't get the messages back on whatsapp, it was misleading.
Describe the bug I have a semi-working bridge connecting Telegram, Matrix, XMPP and Whatsapp.. Receiving messages via bridge works for all. Sending messages via bridge only for Telegram, Matrix, XMPP
To Reproduce Create a Bridge between Whatsapp and Telegram, Matrix or XMPP
Expected behavior Messages sent with WhatsApp are sent via matterbridge.
Screenshots/debug logs In the logs you can see, that whatsapp receives messages (here send from matrix)
But when typing a message in Whatsapp nothing appears in the log. The log file:
Environment (please complete the following information):
Additional context