Rhymen / go-whatsapp

WhatsApp Web API
MIT License
2.09k stars 492 forks source link

connection problem #670

Open SuperTone opened 6 months ago

SuperTone commented 6 months ago

The error is close 1006 (abnormal closure): unexpected EOF. How can I prevent this?

10:33:43.455 [Client/Socket DEBUG] Dialing wss://web.whatsapp.com/ws/chat
10:33:44.164 [Client/Socket DEBUG] Frame websocket read pump starting 0xc000174840
10:33:44.367 [Client DEBUG] Starting handler queue loop
10:33:48.001 [Client/Recv DEBUG] <failure location="rva" reason="405"/>
10:33:48.001 [Client ERROR] Client outdated (405) connect failure

(*events.ClientOutdated)
  (events.ClientOutdated)
10:33:48.105 [Client/Socket ERROR] Error reading from websocket: websocket: close 1006 (abnormal closure): unexpected EOF
10:33:48.106 [Client/Socket DEBUG] Frame websocket read pump exiting 0xc000174840
10:33:48.106 [Client DEBUG] Closing handler queue loop
10:33:48.106 [Client DEBUG] OnDisconnect() called, but it was expected, so not emitting event
tzagim commented 6 months ago

I encountered the same error

manishswami commented 6 months ago

Please change version in version file

On Tue, May 21, 2024, 2:33 PM tzagim @.***> wrote:

I encountered the same error

— Reply to this email directly, view it on GitHub https://github.com/Rhymen/go-whatsapp/issues/670#issuecomment-2122132835, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOPKIJ2Y2YXYUOFX6YTEUODZDMEWJAVCNFSM6AAAAABIBCMOEGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMRSGEZTEOBTGU . You are receiving this because you are subscribed to this thread.Message ID: @.***>

Lilleri commented 5 months ago

same error, there is a way to fix it?

manishswami commented 5 months ago

Change Verion in baileys-version.json

version": [2, 2413, 1]

Working Perfectly