Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Unknown message type #1235

Open
tiagomatrixd opened this issue Feb 3, 2025 · 1 comment
Open

[BUG] Unknown message type #1235

tiagomatrixd opened this issue Feb 3, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@tiagomatrixd
Copy link

This error caused the session to crash and even after restarting the error persisted.

{
  "type": "Error",
  "message": "Unknown message type",
  "stack": "Error: Unknown message type\n    at decodeMessageNode (/home/masterbot/backend/node_modules/@whiskeysockets/baileys/lib/Utils/decode-wa-message.js:78:15)\n    at decryptMessageNode (/home/masterbot/backend/node_modules/@whiskeysockets/baileys/lib/Utils/decode-wa-message.js:105:45)\n    at handleMessage (/home/masterbot/backend/node_modules/@whiskeysockets/baileys/lib/Socket/messages-recv.js:619:96)\n    at execTask (/home/masterbot/backend/node_modules/@whiskeysockets/baileys/lib/Socket/messages-recv.js:802:20)\n    at processNodeWithBuffer (/home/masterbot/backend/node_modules/@whiskeysockets/baileys/lib/Socket/messages-recv.js:799:15)\n    at WebSocketClient.<anonymous> (/home/masterbot/backend/node_modules/@whiskeysockets/baileys/lib/Socket/messages-recv.js:808:9)\n    at WebSocketClient.emit (node:events:519:28)\n    at /home/masterbot/backend/node_modules/@whiskeysockets/baileys/lib/Socket/socket.js:236:35\n    at Object.decodeFrame (/home/masterbot/backend/node_modules/@whiskeysockets/baileys/lib/Utils/noise-handler.js:144:17)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)"
}

Additional Data:

{
  "tag": "message",
  "attrs": {
    "from": "867051314767696@bot",
    "type": "text",
    "id": "CDC9B74E0B9D18FA2D51AE32FCCB75A4",
    "offline": "8",
    "notify": "Meta AI",
    "t": 1738596498
  },
  "content": [
    {
      "tag": "bot",
      "attrs": {
        "edit": "last",
        "edit_target_id": "206BA866BC24AF6CFF1DE9343D79C139",
        "sender_timestamp_ms": 1738596498131
      }
    },
    {
      "tag": "meta",
      "attrs": {
        "target_id": "5DAC210F10E3B9E7E823993158A8B1F0"
      }
    },
    {
      "tag": "enc",
      "attrs": {
        "v": "2",
        "type": "msmsg"
      },
      "content": {
        "type": "Buffer",
        "data": [
          13, 1, 0, 0, 0, 18, 12, 209, 209, 83, 245, 197, 77, 155, 182, 95, 224, 206, 187, 26, 252, 2, 170, 254, 46, 236, 101, 49, 197, 220, 42, 174, 155, 66, 78, 122, 120, 66, 255, 128, 202, 125, 191, 226, 36, 167, 13, 182, 127, 142, 0, 226, 192, 243, 114, 102, 199, 183, 18, 6, 208, 194, 244, 56, 183, 194, 138, 91, 15, 2, 173, 148, 90, 89, 99, 128, 104, 104, 218, 110, 42, 47, 206, 33, 69, 21, 205, 203, 51, 218, 23, 230, 255, 251, 113, 242, 17, 17, 183, 59, 201, 97, 158, 23, 251, 118, 189, 228, 141, 100, 128, 226, 63, 80, 3, 74, 96, 179, 139, 148, 254, 30, 98, 207, 232, 48, 56, 141, 224, 109, 99, 110, 119, 191, 132, 115, 112, 19, 68, 67, 159, 180, 134, 219, 126, 150, 139, 126, 57, 93, 8, 41, 76, 19, 182, 61, 79, 213, 113, 204, 186, 45, 43, 252, 194, 129, 160, 247, 84, 105, 138, 99, 7, 216, 149, 122, 20, 82, 242, 156, 81, 27, 57, 180, 73, 31, 209, 61, 131, 77, 3, 4, 89, 137, 177, 230, 239, 109, 121, 124, 151, 0, 108, 46, 153, 32, 178, 203, 192, 251, 240, 143, 139, 153, 192, 201, 225, 14, 29, 232, 146, 77, 90, 253, 74, 242, 252, 153, 118, 171, 75, 73, 225, 19, 115, 192, 42, 126, 255, 106, 249, 173, 184, 115, 173, 201, 251, 252, 208, 36, 2, 225, 59, 1, 70, 121, 155, 226, 116, 105, 211, 92, 195, 194, 66, 220, 107, 252, 255, 238, 221, 218, 48, 31, 226, 84, 119, 87, 147, 112, 4, 79, 82, 111, 180, 10, 158, 184, 46, 155, 169, 23, 43, 14, 18, 4, 96, 45, 75, 11, 5, 146, 57, 207, 96, 121, 11, 141, 219, 145, 22, 58, 118, 99, 145, 82, 60, 146, 184, 35, 34, 209, 184, 211, 136, 63, 145, 118, 4, 4, 181, 105, 79, 133, 106, 242, 74, 100, 47, 60, 129, 189, 113, 7, 46, 157, 79, 133, 2, 15, 217, 177, 239, 203, 114, 228, 92, 137, 41, 98, 6, 252, 191, 163, 25, 120, 215, 3, 184, 37, 41, 131, 95, 163, 185, 125, 51, 99, 244, 237, 115, 142, 102, 161, 187, 161, 164, 247, 171, 245, 5, 34, 186, 179, 67, 110, 99, 54, 255, 13, 253, 53
      ]}}]}
@tiagomatrixd tiagomatrixd added the bug Something isn't working label Feb 3, 2025
@faizurazadri23
Copy link

I also experienced an error like that when receiving a message from meta AI can't read the message

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants