wppconnect-team / wa-version

Apache License 2.0
123 stars 50 forks source link

Web version webVersion: '2.2413.51' type remote is not working anymore #612

Open foodcodechat opened 1 month ago

foodcodechat commented 1 month ago

Hello everyone please i need help i was using this version but now it's not working anymore please i need help :

webVersion: '2.2413.51',
webVersionCache: {
   type: "remote",
   remotePath:
     "https://mycloudvps.ma/uploads/whatsapp.html", // my server 
 },
ArturKhasa commented 1 month ago

same problem, please help

tegarferdigantara commented 1 month ago

same here, I was used latest version of webVersion 2.3000.1014580163-alpha but still error image

image

foodcodechat commented 1 month ago

hello @tegarferdigantara it was working for you these last days ? or it's your first time using it ?

abdelazizElemary commented 1 month ago

it was working until 8 hours ago. Check their latest commit they remove all the beta versions. And no any alpha version working

tegarferdigantara commented 1 month ago

it was working until 8 hours ago. Check their latest commit they remove all the beta versions. And no any alpha version working

ahh I see image

ArturKhasa commented 1 month ago

it was working until 8 hours ago. Check their latest commit they remove all the beta versions. And no any alpha version working

ahh I see image

This versions is not working too. I can't catch active event, when phone was scaned

foodcodechat commented 1 month ago

344588559-25d6269f-4dd0-418a-b184-1fe24a515110

yeah but at least this version keep generating a loop of qr code so it's a little bit close .... the other beta version is not working anymore i have a backup of it but it's not working it generate only 1 qr and it stop working

tegarferdigantara commented 1 month ago

344588559-25d6269f-4dd0-418a-b184-1fe24a515110

yeah but at least this version keep generating a loop of qr code so it's a little bit close .... the other beta version is not working anymore i have a backup of it but it's not working it generate only 1 qr and it stop working

yeah, hopefully the beta release will be updated quickly xD

ArturKhasa commented 1 month ago

how long should wait?

ArsalT commented 1 month ago

The same issue, I have tried many versions but none is working. The previous versions I was using are removed and have tried running their given code but no progress. Does anyone has any idea of the issue? And is there any alternative to it?

rizkihermansyah83 commented 1 month ago

same probles.. please helpme sir... thanks...

YairEtzion commented 1 month ago

I have the same issue, no other versions work.

mrameen commented 1 month ago

Same problem.. please update ASAP

Obaadz commented 1 month ago

Same issue, waiting update...

asbogrek commented 1 month ago

Same issue, and other versions aren't working either. I'm waiting for an update

palbano30 commented 1 month ago

Mesmo problema aqui.

bibibang-dotcom commented 1 month ago

Same issue, help plz

longgtruong commented 1 month ago

same issue

Andrauss commented 1 month ago

Same issue, no working versions

ashern000 commented 1 month ago

Same issue, no working versions and broke my apps

claudioluispazos commented 1 month ago

I see that 2.2413.51-beta was it removed from this repository. Can you revert that commit, please?

palbano30 commented 1 month ago

Alguma novidade?

JdAkram25514 commented 1 month ago

Any alternative solution?

MOHDaazam commented 1 month ago

One latest Alpha version was added

https://github.com/wppconnect-team/wa-version/commit/bd46ca03c765648e9ce0f788670a788953d63fd8#diff-2d5b12f9201834fecbafa944b5976c5153e286459c474b496d9db28f1733a5f4

I tried by giving the URL , single session and even multiple session

remotePath:
        "https://raw.githubusercontent.com/wppconnect-team/wa-version/main/html/2.3000.1014590669-alpha.html",

It throws below error after QR scan


         throw new Error('Evaluation failed: ' + (0, util_js_1.getExceptionMessage)(exceptionDetails));
              ^

Error: Evaluation failed: TypeError: Cannot read properties of undefined (reading 'default')
    at pptr://__puppeteer_evaluation_script__:5:95
abdelazizElemary commented 1 month ago

One latest Alpha version was added

bd46ca0#diff-2d5b12f9201834fecbafa944b5976c5153e286459c474b496d9db28f1733a5f4

I tried by giving the URL , single session and even multiple session

remotePath:
        "https://raw.githubusercontent.com/wppconnect-team/wa-version/main/html/2.3000.1014590669-alpha.html",

It throws below error after QR scan


         throw new Error('Evaluation failed: ' + (0, util_js_1.getExceptionMessage)(exceptionDetails));
              ^

Error: Evaluation failed: TypeError: Cannot read properties of undefined (reading 'default')
    at pptr://__puppeteer_evaluation_script__:5:95

same issue happened to me when trying the new added a file

ArturKhasa commented 1 month ago

One latest Alpha version was added bd46ca0#diff-2d5b12f9201834fecbafa944b5976c5153e286459c474b496d9db28f1733a5f4 I tried by giving the URL , single session and even multiple session

remotePath:
        "https://raw.githubusercontent.com/wppconnect-team/wa-version/main/html/2.3000.1014590669-alpha.html",

It throws below error after QR scan


         throw new Error('Evaluation failed: ' + (0, util_js_1.getExceptionMessage)(exceptionDetails));
              ^

Error: Evaluation failed: TypeError: Cannot read properties of undefined (reading 'default')
    at pptr://__puppeteer_evaluation_script__:5:95

same issue happened to me when trying the new added a file

Try it too. Same problem

llcoletti commented 1 month ago

Same problem

abdelazizElemary commented 1 month ago

Please if you got the answer add it here Thanks

https://stackoverflow.com/questions/78692742/whatsapp-web-js-package-failing-when-scanning-the-qr-code

foodcodechat commented 1 month ago

I just saw the latest alpha version added 1 hour ago >>>> 2.3000.1014590669-alpha.html

it is correct to test it this way after uploading it on my server >>> like that ? :

webVersion: '2.3000.1014590669', webVersionCache: { type: "remote", remotePath: "https://mycloudvps.ma/uploads/2.3000.1014590669-alpha.html.html", // my server },

CauaCodeDev commented 1 month ago

Remove webVersionCache do codigo e use execute:

npm install github:pedroslopez/whatsapp-web.js#webpack-exodus

irá resolver o problema

CauaCodeDev commented 1 month ago

Remova webVersionCache do código e use execute: npm instalar github:pedroslopez/whatsapp-web.js#webpack-exodus irá resolver o problema

Por favor, você pode mostrar um exemplo de como usar o codigo?

Execute no terminal esse comando abaixo e é resolvido.

npm instalar github:pedroslopez/whatsapp-web.js#webpack-exodus

const client = new Client({ authStrategy: new LocalAuth(), puppeteer: { args: [ '--no-sandbox', '--disable-setuid-sandbox', '--disable-accelerated-2d-canvas', '--no-first-run', '--no-zygote', '--disable-gpu' ], }, });

foodcodechat commented 1 month ago

ok i'm trying thank you so much

CauaCodeDev commented 1 month ago

ok, estou tentando, muito obrigado

resolveu ?

abdelazizElemary commented 1 month ago

Someone posted an answer here and I tried and it worked!

https://stackoverflow.com/questions/78692742/whatsapp-web-js-package-failing-when-scanning-the-qr-code/78692943#78692943

ramonfontes commented 1 month ago

npm install github:pedroslopez/whatsapp-web.js#webpack-exodus

I confirm that this works

foodcodechat commented 1 month ago

Thank you CauaCodeDev and abdelazizElemary :+1:

first delete package.json and package-lock.json 2- install the module witht his commande line >>>> npm install github:pedroslopez/whatsapp-web.js#webpack-exodus 3- add the code below :

// you should require whatsapp-web.js and not the "./index" const { Client, Location, Poll, List, Buttons, LocalAuth } = require('whatsapp-web.js');

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 }, });

palbano30 commented 1 month ago

Não deu certo para mim.

foodcodechat commented 1 month ago

Não deu certo para mim.

give us more detail about your code and the structure of your whatsapp project

proggerkz commented 1 month ago

for me its also not worked, i cant even scan the code it says It is not possible to link new devices

foodcodechat commented 1 month ago

try to logout all the whsatapp web session of your device >>>> in connected devices and try again

proggerkz commented 1 month ago

@foodcodechat tried it still not helped

lanstat commented 1 month ago

Thank you CauaCodeDev and abdelazizElemary 👍

first delete package.json and package-lock.json 2- install the module witht his commande line >>>> npm install github:pedroslopez/whatsapp-web.js#webpack-exodus 3- add the code below :

// you should require whatsapp-web.js and not the "./index" const { Client, Location, Poll, List, Buttons, LocalAuth } = require('whatsapp-web.js');

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 }, });

Thanks! It works for me.

This is my client instantiation. Also I unbinded all my linked devices.

const client = new Client({
        webVersion: '2.3000.1014590669',
        webVersionCache: {
                type: 'remote',
                remotePath: 'https://raw.githubusercontent.com/wppconnect-team/wa-version/main/html/2.3000.1014590669-alpha.html'
        },
        puppeteer: {
                headless: true,
                args: [
                        '--no-sandbox',
                        '--disable-setuid-sandbox',
                        '--disable-dev-shm-usage',
                        '--disable-accelerated-2d-canvas',
                        '--disable-gpu',
                        '--single-process',
                        '--no-zygote'
                ],
        }
});
palbano30 commented 1 month ago

Em qual arquivo devo fazer essa elteração? @lanstat

palbano30 commented 1 month ago

Constants.js?

orl4nd1 commented 1 month ago

Thank you CauaCodeDev and abdelazizElemary 👍

first delete package.json and package-lock.json 2- install the module witht his commande line >>>> npm install github:pedroslopez/whatsapp-web.js#webpack-exodus 3- add the code below :

// you should require whatsapp-web.js and not the "./index" const { Client, Location, Poll, List, Buttons, LocalAuth } = require('whatsapp-web.js');

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 }, });

the goat.

llcoletti commented 1 month ago

Remove webVersionCache do codigo e use execute:

npm install github:pedroslopez/whatsapp-web.js#webpack-exodus

irá resolver o problema

Thank you, that worked for me

abdelazizElemary commented 1 month ago

possible

Check this out @proggerkz

https://stackoverflow.com/questions/78692742/whatsapp-web-js-package-failing-when-scanning-the-qr-code

If you are using yarn you will need to tweak the add command a little bit. Delete node_modules and any old sessions and from the client initialization in your code remove webVersionCache part only puppeteer flags and you auth part as in the stackoverflow link. I hope it works 🙌

palbano30 commented 1 month ago

Aqui ainda não deu certo, o que vai ser alterado em qual arquivo.

palbano30 commented 1 month ago

1 Jul 16:37:50 - [error] Error: Evaluation failed: TypeError: Cannot read properties of undefined (reading 'default') at puppeteer_evaluation_script:5:95 at ExecutionContext._evaluateInternal (C:\Users\serverlocal.node-red\node_modules\puppeteer\lib\cjs\puppeteer\common\ExecutionContext.js:221:19) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async ExecutionContext.evaluate (C:\Users\serverlocal.node-red\node_modules\puppeteer\lib\cjs\puppeteer\common\ExecutionContext.js:110:16) at async Client.initialize (C:\Users\serverlocal.node-red\node_modules\whatsapp-web.js\src\Client.js:323:9) PS C:\Users\serverlocal.node-red>

sagirr commented 1 month ago

npm install github:pedroslopez/whatsapp-web.js#webpack-exodus this solved my problem thanks