WhiskeySockets / Baileys

Lightweight full-featured typescript/javascript WhatsApp Web API
https://baileys.whiskeysockets.io/
MIT License
3.64k stars 1.23k forks source link

[BUG] I have a problem with reading the QR code; it does not appear #1011

Closed mohammad-montaser closed 2 weeks ago

mohammad-montaser commented 2 weeks ago

I don’t have much experience in finding solutions since I’m not a developer. This is the error that appears to me when I try to troubleshoot the problem

0|wbot | requireStack: [] 0|wbot | } 0|wbot | Error: Cannot find module '/www/wwwroot/app.wbot.me_new/wa_server/app.js' 0|wbot | at Function.Module._resolveFilename (node:internal/modules/cjs/loader:985:15) 0|wbot | at Function.Module._load (node:internal/modules/cjs/loader:833:27) 0|wbot | at Object. (/www/server/nodejs/v16.18.0/lib/node_modules/pm2/lib/ProcessContainerFork.js:33:23) 0|wbot | at Module._compile (node:internal/modules/cjs/loader:1155:14) 0|wbot | at Object.Module._extensions..js (node:internal/modules/cjs/loader:1209:10) 0|wbot | at Module.load (node:internal/modules/cjs/loader:1033:32) 0|wbot | at Function.Module._load (node:internal/modules/cjs/loader:868:12) 0|wbot | at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) 0|wbot | at node:internal/main/run_main_module:22:47 { 0|wbot | code: 'MODULE_NOT_FOUND', 0|wbot | requireStack: []

I hope someone can help me by explaining things step-by-step, considering that I am not a developer. Thank you very much

I will attach a picture of what appears in place of the QR code 2024-08-24_11-30-11

MahmoudSlameh commented 2 weeks ago

Change Version Of WA Socket To This Version It Work For Me

makeWASocket({ auth: state, version: [2, 3000, 1015901307], });

mohammad-montaser commented 2 weeks ago

What are the steps, please?

DannOfficial commented 2 weeks ago

What are the steps, please?

change and add ur client connection at makeWASocket, the example : makeWASocket({ printQRInTerminal: !pairing, version: (await (await fetch("https://raw.githubusercontent.com/WhiskeySockets/Baileys/master/src/Defaults/baileys-version.json")).json()).version, isLatest: true,

mohammad-montaser commented 2 weeks ago

I'm trying now