wppconnect-team / wa-version

Apache License 2.0
120 stars 51 forks source link

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

Open foodcodechat opened 2 weeks ago

foodcodechat commented 2 weeks 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 
 },
reinforcers commented 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

MOHDaazam commented 2 weeks ago

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 commented 2 weeks ago

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 commented 2 weeks ago

me too.. please help..

sagirr commented 2 weeks ago

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

mrameen commented 2 weeks ago
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

](url)

Which part need to change ?

MOHDaazam commented 2 weeks ago

@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 commented 2 weeks ago

@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 commented 2 weeks ago

@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 commented 2 weeks ago

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

MOHDaazam commented 2 weeks ago

image

palbano30 commented 2 weeks ago

Estou com o mesmo problema @mrameen, node-red

mrameen commented 2 weeks ago

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 commented 2 weeks ago

image

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

mrameen commented 2 weeks ago

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 commented 2 weeks ago

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

mrameen commented 2 weeks ago

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 commented 1 week ago

try this.. it working for me.. thankyou.. maturnuwon sanget guuuys..... https://github.com/pedroslopez/whatsapp-web.js/issues/2789#issuecomment-2034333596

mrameen commented 1 week ago

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 commented 1 week ago
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 commented 1 week ago

image