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

Tidak bisa scan QR, muncul error seperti ini #1

Open
ridosimbolon98 opened this issue May 13, 2022 · 2 comments
Open

Tidak bisa scan QR, muncul error seperti ini #1

ridosimbolon98 opened this issue May 13, 2022 · 2 comments

Comments

@ridosimbolon98
Copy link

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 (C:\Bitnami\wappstack-7.4.27-0\apache2\htdocs\bot-whatsapp-main\node_modules@adiwajshing\baileys\lib\WAConnection\Utils.js:108:24)
at WAConnection.sendBinary (C:\Bitnami\wappstack-7.4.27-0\apache2\htdocs\bot-whatsapp-main\node_modules@adiwajshing\baileys\lib\WAConnection\0.Base.js:321:26)
at WAConnection. (C:\Bitnami\wappstack-7.4.27-0\apache2\htdocs\bot-whatsapp-main\node_modules@adiwajshing\baileys\lib\WAConnection\4.Events.js:86:18)
at WAConnection.emit (node:events:402:35)
at WAConnection.emit (C:\Bitnami\wappstack-7.4.27-0\apache2\htdocs\bot-whatsapp-main\node_modules@adiwajshing\baileys\lib\WAConnection\4.Events.js:664:41) {
code: 'ERR_INVALID_ARG_TYPE'

@mhmdmydn
Copy link
Owner

Coba di update bang library soalnya udah ada yang terbaru Baileys

@ridosimbolon98
Copy link
Author

Sekarang munculnya gini bg

const conn = new WAConnection();
^

TypeError: WAConnection is not a constructor
at Object.exports.start (C:\Bitnami\wappstack-7.4.27-0\apache2\htdocs\bot-whatsapp\app\message\bot.js:15:18)
at Namespace. (C:\Bitnami\wappstack-7.4.27-0\apache2\htdocs\bot-whatsapp\server.js:24:6)
at Namespace.emit (node:events:390:28)
at Namespace.emitReserved (C:\Bitnami\wappstack-7.4.27-0\apache2\htdocs\bot-whatsapp\node_modules\socket.io\dist\typed-events.js:56:22)
at C:\Bitnami\wappstack-7.4.27-0\apache2\htdocs\bot-whatsapp\node_modules\socket.io\dist\namespace.js:141:26
at processTicksAndRejections (node:internal/process/task_queues:78:11)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants