salman0ansari / whatsapp-api-nodejs

RESTful WhatsApp API with Multiple Device Support
GNU General Public License v3.0
1.27k stars 606 forks source link

Error kills server after reading qr code. #42

Closed Sulivan1999 closed 2 years ago

Sulivan1999 commented 2 years ago

Hello, I'm getting this error right after reading the qr-code, the server stops after the error. Can you help me?

{"level":30,"time":1647628378460,"pid":500079,"hostname":"vmi625985.contaboserver.net","pid":500079, "hostname":"vmi625985.contaboserver.net","class":"baileys","histNotification":{"fileSha256":"fPGw0o4 U6nDbCiyeLkOpmLkgvmMe/2nZ6F+7B3uUSRk=","fileLength":"64115","mediaKey":"YCSpqn+Zo+V4mS1kKreaJfZhblXX Nw+CBYIdbqBXPiA=","fileEncSha256":"OX9rLhvKJQYkXOksk1zqHjN9h3zFGxw4GJ322XzNuz0=","directPath":"/v/t6 2.31111-24/11751996_287822846763677_5514845287318593325_n.enc?ccb=11-4&oh=01_AVw52QFL9MxOpYn5hN6wThY OqQv4FZo1PL0UVKGUAlATTQ&oe=6259BB33","syncType":"INITIAL_STATUS_V3"},"id":"B67406A3DADE68777528E1A52 DD409AA","msg":"got history notification"} {"level":50,"time":1647628378538,"pid":500079,"hostname":"vmi625985.contaboserver.net","err":{"type" :"Error","message":"Connection Closed","stack":"Error: Connection Closed\n at sendRawMessage (/ho me/cp9379ba026/web/public/md_baileys/teste/novo/baileys_api_md/node_modules/@adiwajshing/baileys/lib /Socket/socket.js:63:19)\n at sendNode (/home/cp9379ba026/web/public/md_baileys/teste/novo/bailey s_api_md/node_modules/@adiwajshing/baileys/lib/Socket/socket.js:71:16)\n at processMessage (/home /cp9379ba026/web/public/md_baileys/teste/novo/baileys_api_md/node_modules/@adiwajshing/baileys/lib/S ocket/messages-recv.js:123:27)\n at runMicrotasks (<anonymous>)\n at processTicksAndRejections (node:internal/process/task_queues:96:5)\n at async EventEmitter.<anonymous> (/home/cp9379ba026/ web/public/md_baileys/teste/novo/baileys_api_md/node_modules/@adiwajshing/baileys/lib/Socket/message s-recv.js:452:17)","data":null,"isBoom":true,"isServer":false,"output":{"statusCode":428,"payload":{ "statusCode":428,"error":"Precondition Required","message":"Connection Closed"},"headers":{}}},"msg" :"Connection Closed"} {"level":30,"time":1647628378541,"pid":500079,"hostname":"vmi625985.contaboserver.net","pid":500079, "hostname":"vmi625985.contaboserver.net","class":"baileys","msg":"connected to WA Web"} {"level":30,"time":1647628378639,"pid":500079,"hostname":"vmi625985.contaboserver.net","pid":500079, "hostname":"vmi625985.contaboserver.net","class":"baileys","msg":"handshake complete"} {"level":30,"time":1647628378639,"pid":500079,"hostname":"vmi625985.contaboserver.net","pid":500079, "hostname":"vmi625985.contaboserver.net","class":"baileys","msg":"logging in..."} {"level":30,"time":1647628378644,"pid":500079,"hostname":"vmi625985.contaboserver.net","msg":"Server closed"}

achdiadsyah commented 2 years ago

what branch are you using ? main or MultiDevice ?

Sulivan1999 commented 2 years ago

qual ramo você está usando? principal ou MultiDevice?

I'm using multidevice

salman0ansari commented 2 years ago

can you answer this questions

Sulivan1999 commented 2 years ago
salman0ansari commented 2 years ago

I have never seen this error in this project you are first one to report this

salman0ansari commented 2 years ago

can you try

salman0ansari commented 2 years ago

any update on issue?

salman0ansari commented 2 years ago

No information provided