WhiskeySockets / Baileys

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

[BUG] lastDisconnect Connection Terminated #778

Open Laminhdatau opened 6 months ago

Laminhdatau commented 6 months ago

the status code always displays the disconnection reason 428

{"level":30,"time":"2024-05-11T02:04:01.032Z","pid":14442,"hostname":"sadfrwrfffsd","class":"baileys","trace":"Error: Connection Terminated\n at WebSocketClient. (/home/sadfrwrfffsd/waweb/node_modules/@whiskeysockets/baileys/lib/Socket/socket.js:454:30)\n at WebSocketClient.emit (node:events:518:28)\n at WebSocketClient.emit (node:domain:488:12)\n at WebSocket. (/home/sadfrwrfffsd/waweb/node_modules/@whiskeysockets/baileys/lib/Socket/Client/web-socket-client.js:46:100)\n at WebSocket.emit (node:events:518:28)\n at WebSocket.emit (node:domain:488:12)\n at WebSocket.emitClose (/home/sadfrwrfffsd/waweb/node_modules/ws/lib/websocket.js:265:10)\n at TLSSocket.socketOnClose (/home/sadfrwrfffsd/waweb/node_modules/ws/lib/websocket.js:1289:15)\n at TLSSocket.emit (node:events:530:35)\n at TLSSocket.emit (node:domain:488:12)","msg":"connection errored"} { lastDisconnect: Error: Connection Terminated at WebSocketClient. (/home/sadfrwrfffsd/waweb/node_modules/@whiskeysockets/baileys/lib/Socket/socket.js:454:30) at WebSocketClient.emit (node:events:518:28) at WebSocketClient.emit (node:domain:488:12) at WebSocket. (/home/sadfrwrfffsd/waweb/node_modules/@whiskeysockets/baileys/lib/Socket/Client/web-socket-client.js:46:100) at WebSocket.emit (node:events:518:28) at WebSocket.emit (node:domain:488:12) at WebSocket.emitClose (/home/sadfrwrfffsd/waweb/node_modules/ws/lib/websocket.js:265:10) at TLSSocket.socketOnClose (/home/sadfrwrfffsd/waweb/node_modules/ws/lib/websocket.js:1289:15) at TLSSocket.emit (node:events:530:35) at TLSSocket.emit (node:domain:488:12) { data: null, isBoom: true, isServer: false, output: { statusCode: 428, payload: [Object], headers: {} } } }

spacesoft321 commented 6 months ago

Same problem at my website : FastWSapi.com

postguruji commented 6 months ago

we facing the same issues as yesterday

sairmali commented 6 months ago

1+

tuin007 commented 6 months ago

Did anyone manage to solve it?

tuin007 commented 6 months ago

Does anyone have any idea how to resolve it? I'm in Brazil, with a server in Brazil and I'm facing this problem

mayankagar360 commented 6 months ago

Any one please can help here

mayankagar360 commented 6 months ago

Error: Stream Errored (unknown) at WebSocketClient. (/home/ubuntu/node_modules/@whiskeysockets/baileys/lib/Socket/socket.js:502:13) at WebSocketClient.emit (node:events:513:28) at /home/ubuntu/node_modules/@whiskeysockets/baileys/lib/Socket/socket.js:236:35 at Object.decodeFrame (/home/ubuntu/node_modules/@whiskeysockets/baileys/lib/Utils/noise-handler.js:136:17) at WebSocketClient.onMessageRecieved (/home/ubuntu/node_modules/@whiskeysockets/baileys/lib/Socket/socket.js:212:15) at WebSocketClient.emit (node:events:513:28) at WebSocket. (/home/ubuntu/node_modules/@whiskeysockets/baileys/lib/Socket/Client/web-socket-client.js:46:100) at WebSocket.emit (node:events:513:28) at Receiver.receiverOnMessage (/home/ubuntu/node_modules/ws/lib/websocket.js:1209:20) at Receiver.emit (node:events:513:28) { data: { tag: 'stream:error', attrs: { code: '516' }, content: undefined }, isBoom: true, isServer: true, output: { statusCode: 516, payload: { statusCode: 516, error: 'Unknown', message: 'Stream Errored (unknown)' }, headers: {} } }

getting these while scanning and after that it is not scanning

shanmugaacharan commented 6 months ago

If any of one was able to resolve Error: Stream Errored (unknown) at WebSocketClient. (/home/ubuntu/node_modules/@whiskeysockets/baileys/lib/Socket/socket.js:502:13) at WebSocketClient.emit (node:events:513:28) at /home/ubuntu/node_modules/@whiskeysockets/baileys/lib/Socket/socket.js:236:35 at Object.decodeFrame (/home/ubuntu/node_modules/@whiskeysockets/baileys/lib/Utils/noise-handler.js:136:17) at WebSocketClient.onMessageRecieved (/home/ubuntu/node_modules/@whiskeysockets/baileys/lib/Socket/socket.js:212:15) at WebSocketClient.emit (node:events:513:28) at WebSocket. (/home/ubuntu/node_modules/@whiskeysockets/baileys/lib/Socket/Client/web-socket-client.js:46:100) at WebSocket.emit (node:events:513:28) at Receiver.receiverOnMessage (/home/ubuntu/node_modules/ws/lib/websocket.js:1209:20) at Receiver.emit (node:events:513:28) { data: { tag: 'stream:error', attrs: { code: '516' }, content: undefined }, isBoom: true, isServer: true, output: { statusCode: 516, payload: { statusCode: 516, error: 'Unknown', message: 'Stream Errored (unknown)' }, headers: {} } }

Please suggest me any solution to solve this error

MaznAbdullah commented 6 months ago

+1

tuin007 commented 6 months ago

+1

tuin007 commented 6 months ago

Please suggest me any solution to solve this error

ElielsonU commented 6 months ago

same here.

jonhy751 commented 6 months ago

i need solution 😭

OKEBilling commented 5 months ago

same, keep connect to socket ,

spacesoft321 commented 4 months ago

first install proxy server software on your vps or dedicated server

after it all connection work

more info login FastWSapi.com

image