WhiskeySockets / Baileys

Lightweight full-featured typescript/javascript WhatsApp Web API
https://baileys.whiskeysockets.io/
MIT License
3.63k stars 1.23k forks source link

How To Fix 'Connection Closed'😈 #1004

Closed putra0311 closed 3 weeks ago

putra0311 commented 3 weeks ago

If you get connection closed problem on your termux/terminal for WhatsApp bot, just change the version of whiskeysocket,

The first thing to do is to uninstall the latest version of Whiskey, which is 6.7.7.

$ npm uninstall whiskeysocket/baileys

Second, you install the whiskeysocket version like I did.

$ npm i @whiskeysockets/baileys@6.6.0

That's how if suddenly your bot script is broken. Hope it helps 😎

putra0311 commented 3 weeks ago

Hope it works bro 😈

putra0311 commented 3 weeks ago

If it's still broken, you can change the version of the whiskeysocket again according to the version of the whiskeysocket on your WhatsApp bot, okay?😎

ramiya-yt commented 3 weeks ago

Update to Newest Version will Works!

putra0311 commented 3 weeks ago

Update to Newest Version will Works!

Yeah thats right

But this is only for those who don't work/have the 'Connection Closed' problem

mdmaruf782 commented 3 weeks ago

add version to your whatsapp config option

version: [2, 3000, 1015901307],

It will work

DineshValor commented 2 weeks ago

If you get connection closed problem on your termux/terminal for WhatsApp bot, just change the version of whiskeysocket,

The first thing to do is to uninstall the latest version of Whiskey, which is 6.7.7.

$ npm uninstall whiskeysocket/baileys

Second, you install the whiskeysocket version like I did.

$ npm i @whiskeysockets/baileys@6.6.0

That's how if suddenly your bot script is broken. Hope it helps 😎

I came back active after 2 year break.

Same issue facing with this bot script https://github.com/DineshValor/valor

Tried v6.6.0 as well

DineshValor commented 2 weeks ago

Screenshot_20240825-195929