WhiskeySockets / Baileys

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

[BUG] #698

Closed marutikarad closed 3 months ago

marutikarad commented 5 months ago

} , reconnecting false ---connection--- close 65F14E0356658 connection closed due to Error: Connection Failure at WebSocketClient. (/www/wwwroot/app-md/node_modules/@whiskeysockets/baileys/lib/Socket/socket.js:507:13) at WebSocketClient.emit (node:events:514:28) at /www/wwwroot/app-md/node_modules/@whiskeysockets/baileys/lib/Socket/socket.js:236:35 at Object.decodeFrame (/www/wwwroot/app-md/node_modules/@whiskeysockets/baileys/lib/Utils/noise-handler.js:136:17) at WebSocketClient.onMessageRecieved (/www/wwwroot/app-md/node_modules/@whiskeysockets/baileys/lib/Socket/socket.js:212:15) at WebSocketClient.emit (node:events:514:28) at WebSocket. (/www/wwwroot/app-md/node_modules/@whiskeysockets/baileys/lib/Socket/Client/web-socket-client.js:46:100) at WebSocket.emit (node:events:514:28) at Receiver.receiverOnMessage (/www/wwwroot/app-md/node_modules/@whiskeysockets/baileys/node_modules/ws/lib/websocket.js:1203:20) at Receiver.emit (node:events:514:28) { data: { reason: '403', location: 'cln' }, isBoom: true, isServer: false, output: { statusCode: 403, payload: { statusCode: 403, error: 'Forbidden', message: 'Connection Failure' }, headers: {} } } , reconnecting true adapter--------------> FileSync { source: './data/91****98:1@s.whatsapp.net.json', defaultValue: {}, serialize: [Function: stringify], deserialize: [Function: parse] } ---connection--- connecting 65F14E0356658

sahilbrandwala commented 5 months ago

+1

Darker935 commented 5 months ago

You left your numbers on issue bro :v

sahilbrandwala commented 5 months ago

connection_state":"close","messageType":"connection_update","closeReason":401

marutikarad commented 5 months ago

why closeReason give 401 auto after scan in 2secound?

marutikarad commented 5 months ago

This one library or WhatsApp support issue

marutikarad commented 5 months ago

connection closed due to Error: Connection Failure at WebSocketClient. (/www/wwwroot/app-md/node_modules/@whiskeysockets/baileys/lib/Socket/socket.js:507:13) at WebSocketClient.emit (node:events:514:28) at /www/wwwroot/app-md/node_modules/@whiskeysockets/baileys/lib/Socket/socket.js:236:35 at Object.decodeFrame (/www/wwwroot/app-md/node_modules/@whiskeysockets/baileys/lib/Utils/noise-handler.js:136:17) at WebSocketClient.onMessageRecieved (/www/wwwroot/app-md/node_modules/@whiskeysockets/baileys/lib/Socket/socket.js:212:15) at WebSocketClient.emit (node:events:514:28) at WebSocket. (/www/wwwroot/app-md/node_modules/@whiskeysockets/baileys/lib/Socket/Client/web-socket-client.js:46:100) at WebSocket.emit (node:events:514:28) at Receiver.receiverOnMessage (/www/wwwroot/app-md/node_modules/@whiskeysockets/baileys/node_modules/ws/lib/websocket.js:1203:20) at Receiver.emit (node:events:514:28) { data: { reason: '401', location: 'cln' }, isBoom: true, isServer: false, output: { statusCode: 401, payload: { statusCode: 401, error: 'Unauthorized', message: 'Connection Failure' }, headers: {} } } , reconnecting false

sahilbrandwala commented 5 months ago

Anyone got solution?

sudhansupujari commented 5 months ago

+1

umeshnaga5 commented 5 months ago

any update

cifuentesmx commented 5 months ago

@marutikarad you can't just post your logs and try to get any help.-

Please:

  1. Describe the issue
  2. Add the code you are using
  3. Tell us what's wrong with the code
  4. Try to add the steps to reproduce the bug
emilianomonzaia commented 3 months ago

@cifuentesmx there are no steps. The application starts and these start to appear in the logs. You just need to have active sessions.

{"_hdx_body":"\u001b[95m[Nest] 352 - \u001b[39m05/27/2024, 5:04:11 PM \u001b[95m DEBUG\u001b[39m \u001b[38;5;3m[WhatsappSession - 15665] \u001b[39m\u001b[95mNOWEB events: {\"connection.update\":{\"connection\":\"close\",\"lastDisconnect\":{\"error\":{\"data\":{\"reason\":\"403\",\"location\":\"nao\"},\"isBoom\":true,\"isServer\":false,\"output\":{\"statusCode\":403,\"payload\":{\"statusCode\":403,\"error\":\"Forbidden\",\"message\":\"Connection Failure\"},\"headers\":{}}},\"date\":\"2024-05-27T17:04:11.090Z\"}}}\u001b[39m","event":{"provider":"app"},"fly":{"app":{"instance":"d891165b6e6438","name":"zaia-whatsapp-gateway-prod"},"region":"atl"},"host":"c3f1","log":{"level":"info"},"message":"\u001b[95m[Nest] 352 - \u001b[39m05/27/2024, 5:04:11 PM \u001b[95m DEBUG\u001b[39m \u001b[38;5;3m[WhatsappSession - 15665] \u001b[39m\u001b[95mNOWEB events: {\"connection.update\":{\"connection\":\"close\",\"lastDisconnect\":{\"error\":{\"data\":{\"reason\":\"403\",\"location\":\"nao\"},\"isBoom\":true,\"isServer\":false,\"output\":{\"statusCode\":403,\"payload\":{\"statusCode\":403,\"error\":\"Forbidden\",\"message\":\"Connection Failure\"},\"headers\":{}}},\"date\":\"2024-05-27T17:04:11.090Z\"}}}\u001b[39m","timestamp":"2024-05-27T17:04:11.091731853Z"}

Here is the complete logs.