WhiskeySockets / Baileys

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

Stream Error: status code 516 #782

Open shanmugaacharan opened 3 months ago

shanmugaacharan commented 3 months ago

Describe the bug {"level":50,"time":"2024-05-14T06:38:19.171Z","pid":349932,"hostname":"ip-172-31-41-182","class":"baileys","node":{"tag":"stream:error","attrs":{"code":"516"}},"msg":"stream errored out"} {"level":30,"time":"2024-05-14T06:38:19.172Z","pid":349932,"hostname":"ip-172-31-41-182","class":"baileys","trace":"Error: Stream Errored (unknown)\n at WebSocketClient. (/home/ubuntu/node_modules/@whiskeysockets/baileys/lib/Socket/socket.js:519:13)\n at WebSocketClient.emit (node:events:518:28)\n at /home/ubuntu/node_modules/@whiskeysockets/baileys/lib/Socket/socket.js:236:35\n at Object.decodeFrame (/home/ubuntu/node_modules/@whiskeysockets/baileys/lib/Utils/noise-handler.js:136:17)\n at WebSocketClient.onMessageReceived (/home/ubuntu/node_modules/@whiskeysockets/baileys/lib/Socket/socket.js:212:15)\n at WebSocketClient.emit (node:events:518:28)\n at WebSocket. (/home/ubuntu/node_modules/@whiskeysockets/baileys/lib/Socket/Client/web-socket-client.js:46:100)\n at WebSocket.emit (node:events:518:28)\n at Receiver.receiverOnMessage (/home/ubuntu/node_modules/ws/lib/websocket.js:1209:20)\n at Receiver.emit (node:events:518:28)","msg":"connection errored"}

image

Whenever I tried log in by scanning the QR code the above error is encountered. This has happened past 3 to 4 days, and before that, it is working fine.

Expected behavior While scanning it should login but it is encountering the above error

Environment :

web-codder commented 3 months ago

+1

MaznAbdullah commented 3 months ago

+1

mayankagar360 commented 3 months ago

Facing these problem.

shanmugaacharan commented 3 months ago

@mayankagar360 @MaznAbdullah @emitrablogbot Have you found any resolution for the above error?

mayankagar360 commented 3 months ago

No buddy @shanmugaacharan

Alien-Alfa commented 3 months ago

@shanmugaacharan are you using VPS or RDP?

mayankagar360 commented 3 months ago

Any update did anyone solved these problem, Please update you have some solutions

shanmugaacharan commented 3 months ago

@Alien-Alfa I am using VPS

dephea commented 3 months ago

Facing the same issue

azartheen commented 3 months ago

Is there any temporary solution on this ? @dephea @Alien-Alfa @shanmugaacharan @MaznAbdullah

dephea commented 3 months ago

@azartheen try to use vpn on the whatsapp device but it also might not work. For example when used proxy in russia for my app, i managed to connect with a UK vpn. But using proxy in europe it didn’t work even with vpn

cristianm commented 3 months ago

any fix this?

mayankagar360 commented 3 months ago

DO we have any solution for these as these is very urgent.