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
239 stars 67 forks source link

WA2DC-Linux down (from release builds 30-08) after send image from Discord #95

Closed magadan closed 1 year ago

magadan commented 1 year ago

Describe the bug WA2DC-Linuxdown after send image from Discord

To Reproduce Steps to reproduce the behavior:

  1. Go to the channel conversantion and sent a image...
  2. The WA2DC-Linux simply stops, no error on console only in logs.txt.

Expected behavior A clear and concise description of what you expected to happen.

Logs {"level":50,"time":1661913904169,"pid":115806,"hostname":"suporte","err":{"type":"TypeError","message":"object is not iterable (cannot read property Symbol(Symbol.iterator))","stack":"TypeError: object is not iterable (cannot read property Symbol(Symbol.iterator))\n at /snapshot/WhatsAppToDiscord/src/whatsapp_manager.js:97:49\n at /snapshot/WhatsAppToDiscord/node_modules/@discordjs/collection/dist/index.js:182:14\n at Function.from ()\n at _Collection.map (/snapshot/WhatsAppToDiscord/node_modules/@discordjs/collection/dist/index.js:180:18)\n at EventEmitter. (/snapshot/WhatsAppToDiscord/src/whatsapp_manager.js:97:45)\n at EventEmitter.emit (node:events:527:28)\n at EventEmitter. (/snapshot/WhatsAppToDiscord/node_modules/@adiwajshing/baileys/lib/Utils/event-buffer.js:38:16)\n at EventEmitter.emit (node:events:527:28)\n at Object.emit (/snapshot/WhatsAppToDiscord/node_modules/@adiwajshing/baileys/lib/Utils/event-buffer.js:56:23)\n at Client. (/snapshot/WhatsAppToDiscord/src/discord_manager.js:241:23)"},"msg":"object is not iterable (cannot read property Symbol(Symbol.iterator))"} {"level":30,"time":1661913904169,"pid":115806,"hostname":"suporte","msg":"Exiting!"} {"level":30,"time":1661913904179,"pid":115806,"hostname":"suporte","msg":"Exiting!"}

Platform Linux

Additional context Im using latest release for linux downloaded last hour.

FKLC commented 1 year ago

Fixed it. New version should be released in a few minutes.

magadan commented 1 year ago

Thank you! Its working.