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

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

Open
foodcodechat opened this issue Jul 1, 2024 · 71 comments
Open

Comments

@foodcodechat
Copy link

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
Copy link

same problem, please help

@tegarferdigantara
Copy link

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

image

@foodcodechat
Copy link
Author

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

@abdelazizElemary
Copy link

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

@tegarferdigantara
Copy link

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
Copy link

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
Copy link
Author


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
Copy link

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
Copy link

how long should wait?

@ArsalT
Copy link

ArsalT commented Jul 1, 2024

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
Copy link

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

@YairEtzion
Copy link

I have the same issue, no other versions work.

@mrameen
Copy link

mrameen commented Jul 1, 2024

Same problem.. please update ASAP

@Obaadz
Copy link

Obaadz commented Jul 1, 2024

Same issue, waiting update...

@asbogrek
Copy link

asbogrek commented Jul 1, 2024

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

@palbano30
Copy link

Mesmo problema aqui.

@bibibang-dotcom
Copy link

Same issue, help plz

@longgtruong
Copy link

same issue

@Andrauss
Copy link

Andrauss commented Jul 1, 2024

Same issue, no working versions

@ashern000
Copy link

Same issue, no working versions and broke my apps

@claudioluispazos
Copy link

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

@palbano30
Copy link

Alguma novidade?

@JdAkram25514
Copy link

Any alternative solution?

@MOHDaazam
Copy link

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

@abdelazizElemary
Copy link

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
Copy link

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
Copy link

Same problem

@abdelazizElemary
Copy link

@foodcodechat
Copy link
Author

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
Copy link

Remove webVersionCache do codigo e use execute:

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

irá resolver o problema

@palbano30
Copy link

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

@palbano30
Copy link

Constants.js?

@orl4nd1
Copy link

orl4nd1 commented Jul 1, 2024

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
Copy link

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
Copy link

abdelazizElemary commented Jul 1, 2024

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
Copy link

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

@palbano30
Copy link

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
Copy link

sagirr commented Jul 1, 2024

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

@reinforcers
Copy link

reinforcers commented Jul 2, 2024

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

@MOHDaazam
Copy link

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

I tried this solution and it's working as intended.

@MOHDaazam
Copy link

By the way Guys, Where do you deploy your services (of whatsapp-js), I tried with render.com and netlify, but nothing works out!

@yairmelamed
Copy link

me too.. please help..

@sagirr
Copy link

sagirr commented Jul 2, 2024 via email

@mrameen
Copy link

mrameen commented Jul 2, 2024

Screenshot 2024-07-02 at 16 29 23 After scan qr code, error this...

using docker Dockerfile
Screenshot 2024-07-02 at 16 32 12

setting at shell.js
Screenshot 2024-07-02 at 16 30 15

setting at Constants.js

Screenshot 2024-07-02 at 16 31 00

Which part need to change ?

@MOHDaazam
Copy link

@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.

@rizkihermansyah83
Copy link

@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.

i have do this in node-red,, but still error,, can you explain more please...

@MOHDaazam
Copy link

@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

@MOHDaazam
Copy link

MOHDaazam commented Jul 2, 2024 via email

@MOHDaazam
Copy link

image

@palbano30
Copy link

Estou com o mesmo problema @mrameen, node-red

@mrameen
Copy link

mrameen commented Jul 2, 2024

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…

@rizkihermansyah83
Copy link

image

it different from node red.. if i do that.. qr code not show and error happen..

@mrameen
Copy link

mrameen commented Jul 2, 2024

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'
},

@MOHDaazam
Copy link

MOHDaazam commented Jul 2, 2024 via email

@mrameen
Copy link

mrameen commented Jul 3, 2024

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..
Screenshot 2024-07-03 at 09 18 41

this is Constans.js
Screenshot 2024-07-03 at 09 17 36

if remove webVersionCache in Constants.js, it will error in Client.js because it call that variable

@rizkihermansyah83
Copy link

rizkihermansyah83 commented Jul 3, 2024

try this.. it working for me.. thankyou.. maturnuwon sanget guuuys.....
pedroslopez/whatsapp-web.js#2789 (comment)

@mrameen
Copy link

mrameen commented Jul 3, 2024

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

@WichyAlonzo
Copy link

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!

@WichyAlonzo
Copy link

image

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