INFO [2022-04-07 18:37:15.455 +0000] (11852): validated connection successfully
class: "Baileys"
INFO [2022-04-07 18:37:15.458 +0000] (11852): opened connection to WhatsApp Web
class: "Baileys"
encountered err TypeError: Cannot read properties of undefined (reading 'toString')
node:internal/errors:464
ErrorCaptureStackTrace(err);
^
TypeError [ERR_INVALID_ARG_TYPE]: The "key" argument must be of type string or an instance of ArrayBuffer, Buffer, TypedArray, DataView, KeyObject, or CryptoKey. Received undefined
at new NodeError (node:internal/errors:371:5)
at prepareSecretKey (node:internal/crypto/keys:570:11)
at Cipheriv.createCipherWithIV (node:internal/crypto/cipher:133:9)
at new Cipheriv (node:internal/crypto/cipher:243:3)
at Object.createCipheriv (node:crypto:138:10)
at Object.aesEncrypt (master\node_modules\@adiwajshing\baileys\lib\WAConnection\Utils.js:108:24)
at WAConnection.sendBinary (master\node_modules\@adiwajshing\baileys\lib\WAConnection\0.Base.js:321:26)
at WAConnection. (master\node_modules\@adiwajshing\baileys\lib\WAConnection\4.Events.js:86:18)
at WAConnection.emit (node:events:526:28)
at WAConnection.emit (master\node_modules\@adiwajshing\baileys\lib\WAConnection\4.Events.js:664:41) {
code: 'ERR_INVALID_ARG_TYPE'
}
INFO [2022-04-07 18:37:15.455 +0000] (11852): validated connection successfully class: "Baileys" INFO [2022-04-07 18:37:15.458 +0000] (11852): opened connection to WhatsApp Web class: "Baileys" encountered err TypeError: Cannot read properties of undefined (reading 'toString') node:internal/errors:464 ErrorCaptureStackTrace(err); ^
TypeError [ERR_INVALID_ARG_TYPE]: The "key" argument must be of type string or an instance of ArrayBuffer, Buffer, TypedArray, DataView, KeyObject, or CryptoKey. Received undefined at new NodeError (node:internal/errors:371:5) at prepareSecretKey (node:internal/crypto/keys:570:11) at Cipheriv.createCipherWithIV (node:internal/crypto/cipher:133:9) at new Cipheriv (node:internal/crypto/cipher:243:3) at Object.createCipheriv (node:crypto:138:10) at Object.aesEncrypt (master\node_modules\@adiwajshing\baileys\lib\WAConnection\Utils.js:108:24) at WAConnection.sendBinary (master\node_modules\@adiwajshing\baileys\lib\WAConnection\0.Base.js:321:26) at WAConnection. (master\node_modules\@adiwajshing\baileys\lib\WAConnection\4.Events.js:86:18)
at WAConnection.emit (node:events:526:28)
at WAConnection.emit (master\node_modules\@adiwajshing\baileys\lib\WAConnection\4.Events.js:664:41) {
code: 'ERR_INVALID_ARG_TYPE'
}