Open foodcodechat opened 2 weeks ago
all I did was npm install github:pedroslopez/whatsapp-web.js#webpack-exodus
without removing package.json
and then remove the webVersionCache
from my code and its working again
I tried this solution and it's working as intended.
By the way Guys, Where do you deploy your services (of whatsapp-js), I tried with render.com and netlify, but nothing works out!
me too.. please help..
I have special vindows vds. You can take a vds for this
2 Tem 2024 Sal 07:14 tarihinde Mohd Azam @.***> şunu yazdı:
By the way Guys, Where do you deploy your services (of whatsapp-js), I tried with render.com and netlify, but nothing works out!
— Reply to this email directly, view it on GitHub https://github.com/wppconnect-team/wa-version/issues/612#issuecomment-2201865733, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGOEGGY5TFNUXAWSNDMKBJTZKISKPAVCNFSM6AAAAABKE53576VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMBRHA3DKNZTGM . You are receiving this because you commented.Message ID: @.***>
After scan qr code, error this...
using docker Dockerfile
setting at shell.js
setting at Constants.js [
](url)
Which part need to change ?
@mrameen
You can follow these steps https://stackoverflow.com/questions/78692742/whatsapp-web-js-package-failing-when-scanning-the-qr-code/78692943#78692943
then you don't need to mention webVersionCache
and even webVersion
it will creates it own, during runtime.
@mrameen
You can follow these steps https://stackoverflow.com/questions/78692742/whatsapp-web-js-package-failing-when-scanning-the-qr-code/78692943#78692943
then you don't need to mention
webVersionCache
and evenwebVersion
it will creates it own, during runtime.
i have do this in node-red,, but still error,, can you explain more please...
@rizkihermansyah83 Did you tried deleting the previous cache, like .web_auth, before restarting ? And make sure you have delete the current whatsapp-web.js from package.json and delete the node_module then install this
npm install github:pedroslopez/whatsapp-web.js#webpack-exodus
@yairmelamed
In my case it saves these two folders [image: image.png]
and on restarting the services, it says connecting on QR code but it takes previous authenticated users.
On Tue, Jul 2, 2024 at 2:38 PM yairmelamed @.***> wrote:
Yes.. it works.. but it doesn't save the .web_auth folder.. so I need to scan again.. beside, the official version of whatsapp-web.js is for 2.4.. not 2.3..
— Reply to this email directly, view it on GitHub https://github.com/wppconnect-team/wa-version/issues/612#issuecomment-2202416683, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALN244W3CHUJ4ELCKSKHGS3ZKJUX5AVCNFSM6AAAAABKE53576VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMBSGQYTMNRYGM . You are receiving this because you commented.Message ID: @.***>
Estou com o mesmo problema @mrameen, node-red
webVersionCache
It will error like this after delete folder whatsapp-web.js , container nodered cannot open, if npm install again, it will create the same folder before delete
![Uploading Screenshot 2024-07-02 at 19.12.07.png…]()
it different from node red.. if i do that.. qr code not show and error happen..
const client = new Client({ authStrategy: new LocalAuth({ clientId: this.id, dataPath: this.sessionPath, }), // proxyAuthentication: { username: 'username', password: 'password' }, puppeteer: { // args: ['--proxy-server=proxy-server-that-requires-authentication.example.com'], args: ['--no-sandbox', '--disable-setuid-sandbox'] , headless: true }, });
How do you set this? webVersionCache: { type: 'remote', remotePath: 'https://raw.githubusercontent.com/wppconnect-team/wa-version/main/html/2.3000.1014610951-alpha.html' },
In this version of release, no need set these
webVersionCache: {
type: 'remote', remotePath: ' https://raw.githubusercontent.com/wppconnect-team/wa-version/main/html/2.3000.1014610951-alpha.html ' },
Mine : const createSession = function (id, description) { console.log("Creating session: " + id); const client = new Client({ // restartOnAuthFail: true, puppeteer: { headless: true, args: [ "--no-sandbox", "--disable-setuid-sandbox", "--disable-dev-shm-usage", "--disable-web-security", "--disable-gpu", "--hide-scrollbars", "--disable-cache", "--disable-application-cache", "--disable-gpu-driver-bug-workarounds", "--disable-accelerated-2d-canvas", "--no-first-run", "--no-zygote", "--single-process", // <- this one doesn't works in Windows ], }, authStrategy: new LocalAuth({ clientId: id, dataPath: './wweb_auth' }),
});
On Tue, Jul 2, 2024 at 9:02 PM Mr Ameen @.***> wrote:
const client = new Client({ authStrategy: new LocalAuth({ clientId: this.id, dataPath: this.sessionPath, }), // proxyAuthentication: { username: 'username', password: 'password' }, puppeteer: { // args: ['--proxy-server= proxy-server-that-requires-authentication.example.com'], args: ['--no-sandbox', '--disable-setuid-sandbox'] , headless: true }, });
How do you set this? webVersionCache: { type: 'remote', remotePath: ' https://raw.githubusercontent.com/wppconnect-team/wa-version/main/html/2.3000.1014610951-alpha.html ' },
— Reply to this email directly, view it on GitHub https://github.com/wppconnect-team/wa-version/issues/612#issuecomment-2203545309, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALN244VLHJNMRPH2EOHNTADZKLB2JAVCNFSM6AAAAABKE53576VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMBTGU2DKMZQHE . You are receiving this because you commented.Message ID: @.***>
const createSession = function (id, description) {
Still got this error after scanning QR CODE:
nodered-whatsapp | 3 Jul 09:17:11 - [info] [whatsappLink:Web] Status : Connecting to Whatsapp... nodered-whatsapp | 3 Jul 09:17:16 - [red] Uncaught Exception: nodered-whatsapp | 3 Jul 09:17:16 - [error] Error: Evaluation failed: TypeError: Cannot read properties of undefined (reading 'default') nodered-whatsapp | at pptr://__puppeteer_evaluation_script__:5:95 nodered-whatsapp | at ExecutionContext._ExecutionContext_evaluate (/data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ExecutionContext.js:229:15) nodered-whatsapp | at process.processTicksAndRejections (node:internal/process/task_queues:95:5) nodered-whatsapp | at async ExecutionContext.evaluate (/data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ExecutionContext.js:107:16) nodered-whatsapp | at async Client.initialize (/data/node_modules/whatsapp-web.js/src/Client.js:340:9) nodered-whatsapp | 3 Jul 09:17:24 - [info]
I dont have this function..
const createSession = function (id, description) { console.log("Creating session: " + id); const client = new Client({
i use docker nodered , setting right now for that error
this my shell.js , default already comment..
this is Constans.js
if remove webVersionCache in Constants.js, it will error in Client.js because it call that variable
try this.. it working for me.. thankyou.. maturnuwon sanget guuuys..... https://github.com/pedroslopez/whatsapp-web.js/issues/2789#issuecomment-2034333596
try this.. it working for me.. thankyou.. maturnuwon sanget guuuys..... pedroslopez/whatsapp-web.js#2789 (comment)
Thank you so much.. its working now.. mantap bosku
client = new Client({
authStrategy: new LocalAuth(),
puppeteer: {
executablePath: 'C:/Program Files/Google/Chrome/Application/chromex.exe',
headless: false,
args: ['--no-sandbox', '--disable-setuid-sandbox'],
},
webVersionCache: {
type: 'remote',
// remotePath: 'https://raw.githubusercontent.com/wppconnect-team/wa-version/main/html/2.2413.51-beta.html',
remotePath: 'https://raw.githubusercontent.com/wppconnect-team/wa-version/main/html/2.3000.1014590669-alpha',
}
});
npm install github:pedroslopez/whatsapp-web.js#webpack-exodus
Done!
Hello everyone please i need help i was using this version but now it's not working anymore please i need help :