question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bot Seem to just crash

See original GitHub issue

The latest release just seem to crash after launching it.

Please enter your bot token: REMOVE
Invite the bot using the following link: REMOVE
Bot is now running. Press CTRL-C to exit.
/snapshot/WhatsAppToDiscord/src/whatsapp_utils.js:126
                        return { channelJid: formatJid(msg.key.remoteJid), senderJid: formatJid(state.waClient.user.id) };
                                                                                                                    ^

TypeError: Cannot read properties of undefined (reading 'id')
    at Object.getWebhookAndSenderJid (/snapshot/WhatsAppToDiscord/src/whatsapp_utils.js:126:96)
    at Client.<anonymous> (/snapshot/WhatsAppToDiscord/src/discord_manager.js:38:50)
    at Client.emit (node:events:527:28)
    at /snapshot/WhatsAppToDiscord/src/whatsapp_manager.js:53:49
    at new Promise (<anonymous>)
    at EventEmitter.<anonymous> (/snapshot/WhatsAppToDiscord/src/whatsapp_manager.js:53:11)

Node.js v17.8.0
ubuntu@instance-20211229-1549:~/wa2discord$ ./WA2DC-Linux
It seems like this is your first run.
Please enter your bot token:

Machine details

ubuntu@instance-20211229-1549:~/wa2discord$ uname -a
Linux instance-20211229-1549 5.11.0-1028-oracle #31~20.04.1-Ubuntu SMP Wed Jan 26 14:17:34 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
KungFuCookiecommented, May 13, 2022

totally interested to see the answer here. I was about to push to Digital Ocean droplet until FKLC put the fear of god into me…

0reactions
itspacchucommented, Jul 12, 2022

The new JS version keeps disconnecting, are you finiding that a problem running on Oracle? DO you have a link to the free tier?

https://www.oracle.com/cloud/free/ @spookycookie27

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix Server Overload & Crashes Due to Bad Bot Traffic
Learn how bad bot traffic can cause server overload, ruin your customer experience, and increase your cloud bill—and what you can do to ......
Read more >
Bot keeps crashing after a while (around half an hour i think) #2
Hey, just want to firstly say this is an amazing bot :D. It's way better than the ... It seems to crash randomly,...
Read more >
Why does this make the bot crash? - Stack Overflow
The bot isn't crashing when I use a regular message. Maybe I'm just using the Embed message wrong. Object.defineProperty(this, ' ...
Read more >
System repeatedly crashes on or just after startup
After another, but successful startup repair, it still seemed to crash constantly. My admin account is the main account that this has mostly ......
Read more >
The Chat Crash - When a Chatbot Fails - Toptal
When it comes to chatbots, there's a lot of confusion, frustration, and hyperbole. The tech is promising, but the user experience is a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found