FKLC / WhatsAppToDiscord

WhatsAppToDiscord is a Discord bot that uses WhatsApp Web as a bridge between Discord and WhatsApp.
https://fklc.github.io/WhatsAppToDiscord/
MIT License
238 stars 67 forks source link

Bot crashes and goes offline when receiving audio call. #155

Closed mastanoob closed 9 months ago

mastanoob commented 10 months ago

Describe the bug WhatsApp bot abruptly crashes and goes offline when receiving a voice call via WhatsApp. The Discord server shows the channel with name of the person who is calling but the channel it self is empty of any content.

To Reproduce Steps to reproduce the behavior:

  1. start the bot as per the instructions
  2. receive a voice call via WhatsApp
  3. channel opens up with the name of the person calling

Expected behavior The bot should not crash and go offline. It should be able to at least let the call ring and continue on with its functionalities.

Logs logs.txt

Platform

Additional context Initially this occurred with server running with 30-40+ channels but kept crashing so we did a fresh install plus new server to replicate the issue; It's still persistent. Also tried with the Windows version, it's still persistent. See attached log.txt file

mastanoob commented 10 months ago

right now the server is running using: while true; do node .; sleep 2; done;. It restarts the server and the channels which were from previous iteration get removed from "WHATSAPP" channel group header and placed outside.

f-wllr commented 9 months ago

I have the same problem. OS of bot host is Windows 10 Home