WAppAI / assistant

A WhatsApp chatbot that leverages Bing AI's and others LLMs conversational capabilities.
MIT License
87 stars 27 forks source link

Connection closed with an error. #161

Closed Ryzitos closed 8 months ago

Ryzitos commented 10 months ago
error: {
    name: 'Error',
    message: 'Connection closed with an error.',
    stack: 'Error: Connection closed with an error.\n' +
      '    at WebSocket.<anonymous> (file:///root/sydney-whatsapp-chatbot/node_modules/@waylaidwanderer/chatgpt-api/src/BingAIClient.js:553:32)\n' +
      '    at WebSocket.emit (node:events:525:35)\n' +
      '    at WebSocket.emit (node:domain:489:12)\n' +
      '    at Receiver.receiverOnMessage (/root/sydney-whatsapp-chatbot/node_modules/ws/lib/websocket.js:1184:20)\n' +
      '    at Receiver.emit (node:events:513:28)\n' +
      '    at Receiver.emit (node:domain:489:12)\n' +
      '    at Receiver.dataMessage (/root/sydney-whatsapp-chatbot/node_modules/ws/lib/receiver.js:541:14)\n' +
      '    at Receiver.getData (/root/sydney-whatsapp-chatbot/node_modules/ws/lib/receiver.js:459:17)\n' +
      '    at Receiver.startLoop (/root/sydney-whatsapp-chatbot/node_modules/ws/lib/receiver.js:158:22)\n' +
      '    at Receiver._write (/root/sydney-whatsapp-chatbot/node_modules/ws/lib/receiver.js:84:10)\n' +
      '    at writeOrBuffer (node:internal/streams/writable:391:12)\n' +
      '    at _write (node:internal/streams/writable:332:10)\n' +
      '    at Receiver.Writable.write (node:internal/streams/writable:336:10)\n' +
      '    at TLSSocket.socketOnData (/root/sydney-whatsapp-chatbot/node_modules/ws/lib/websocket.js:1278:35)\n' +
      '    at TLSSocket.emit (node:events:513:28)\n' +
      '    at TLSSocket.emit (node:domain:489:12)'
  }

This error appeared after trying to change the tone in a group and from then on Sydney no longer responded in that specific group, then it popped up in another group and also stopped responding in that group, although it still worked in the DM