Git Product home page Git Product logo

Comments (21)

hkvincent avatar hkvincent commented on June 14, 2024 1

need to change the "whatsapp-web.js": "https://github.com/Julzk/whatsapp-web.js/tarball/jkr_hotfix_7" to "whatsapp-web.js": "https://github.com/Julzk/whatsapp-web.js/tarball/jkr_hotfix_11" in package.json

from whatsapp-chatgpt.

connorv001 avatar connorv001 commented on June 14, 2024

Which version are you using?

from whatsapp-chatgpt.

Cryptoverso avatar Cryptoverso commented on June 14, 2024

Alguma solução? estou tento o mesmo problema!! :(
└── [email protected]

/Users/guilhermemelo/Codes/CoinNodes/chatbot/node_modules/whatsapp-web.js/src/webCache/LocalWebCache.js:34
const version = indexHtml.match(/manifest-([\d\.]+).json/)[1];
^

TypeError: Cannot read properties of null (reading '1')
at LocalWebCache.persist (/Users/guilhermemelo/Codes/CoinNodes/chatbot/node_modules/whatsapp-web.js/src/webCache/LocalWebCache.js:34:69)
at /Users/guilhermemelo/Codes/CoinNodes/chatbot/node_modules/whatsapp-web.js/src/Client.js:729:36
at processTicksAndRejections (node:internal/process/task_queues:95:5)

Node.js v20.12.0

from whatsapp-chatgpt.

GreenerX avatar GreenerX commented on June 14, 2024

need to change the "whatsapp-web.js": "https://github.com/Julzk/whatsapp-web.js/tarball/jkr_hotfix_7" to "whatsapp-web.js": "https://github.com/Julzk/whatsapp-web.js/tarball/jkr_hotfix_11" in package.json

This didn't help :(
SCR-20240404-pudy

from whatsapp-chatgpt.

rikuddo91 avatar rikuddo91 commented on June 14, 2024

This worked for me:

npm update whatsapp-web.js

Still giving me the error after scanning the QR Code,

`E:\Temp\whatsapp-chatgpt\node_modules\whatsapp-web.js\node_modules\puppeteer\lib\cjs\puppeteer\common\ExecutionContext.js:221
throw new Error('Evaluation failed: ' + helper_js_1.helper.getExceptionMessage(exceptionDetails));
^

Error: Evaluation failed: TypeError: Cannot read properties of undefined (reading 'default')
at puppeteer_evaluation_script:5:95
at ExecutionContext._evaluateInternal (E:\Temp\whatsapp-chatgpt\node_modules\whatsapp-web.js\node_modules\puppeteer\src\common\ExecutionContext.ts:273:13)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at ExecutionContext.evaluate (E:\Temp\whatsapp-chatgpt\node_modules\whatsapp-web.js\node_modules\puppeteer\src\common\ExecutionContext.ts:140:12)
at Client.initialize (E:\Temp\whatsapp-chatgpt\node_modules\whatsapp-web.js\src\Client.js:327:9)

Node.js v18.18.0`

from whatsapp-chatgpt.

GreenerX avatar GreenerX commented on June 14, 2024

This worked for me:
npm update whatsapp-web.js

Still giving me the error after scanning the QR Code,

`E:\Temp\whatsapp-chatgpt\node_modules\whatsapp-web.js\node_modules\puppeteer\lib\cjs\puppeteer\common\ExecutionContext.js:221 throw new Error('Evaluation failed: ' + helper_js_1.helper.getExceptionMessage(exceptionDetails)); ^

Error: Evaluation failed: TypeError: Cannot read properties of undefined (reading 'default') at puppeteer_evaluation_script:5:95 at ExecutionContext._evaluateInternal (E:\Temp\whatsapp-chatgpt\node_modules\whatsapp-web.js\node_modules\puppeteer\src\common\ExecutionContext.ts:273:13) at processTicksAndRejections (node:internal/process/task_queues:95:5) at ExecutionContext.evaluate (E:\Temp\whatsapp-chatgpt\node_modules\whatsapp-web.js\node_modules\puppeteer\src\common\ExecutionContext.ts:140:12) at Client.initialize (E:\Temp\whatsapp-chatgpt\node_modules\whatsapp-web.js\src\Client.js:327:9)

Node.js v18.18.0`

Yeah still not working for me either after the update..

from whatsapp-chatgpt.

connorv001 avatar connorv001 commented on June 14, 2024

This worked for me:
npm update whatsapp-web.js

Still giving me the error after scanning the QR Code,
E:\Temp\whatsapp-chatgpt\node_modules\whatsapp-web.js\node_modules\puppeteer\lib\cjs\puppeteer\common\ExecutionContext.js:221 throw new Error('Evaluation failed: ' + helper_js_1.helper.getExceptionMessage(exceptionDetails)); ^ Error: Evaluation failed: TypeError: Cannot read properties of undefined (reading 'default') at **puppeteer_evaluation_script**:5:95 at ExecutionContext._evaluateInternal (E:\Temp\whatsapp-chatgpt\node_modules\whatsapp-web.js\node_modules\puppeteer\src\common\ExecutionContext.ts:273:13) at processTicksAndRejections (node:internal/process/task_queues:95:5) at ExecutionContext.evaluate (E:\Temp\whatsapp-chatgpt\node_modules\whatsapp-web.js\node_modules\puppeteer\src\common\ExecutionContext.ts:140:12) at Client.initialize (E:\Temp\whatsapp-chatgpt\node_modules\whatsapp-web.js\src\Client.js:327:9) Node.js v18.18.0

Yeah still not working for me either after the update..

Did you update?

from whatsapp-chatgpt.

rikuddo91 avatar rikuddo91 commented on June 14, 2024

Did you update?

Yes, I did.

from whatsapp-chatgpt.

connorv001 avatar connorv001 commented on June 14, 2024

Did you update?

Yes, I did.

what's the verison of whatsapp-webjs

from whatsapp-chatgpt.

rikuddo91 avatar rikuddo91 commented on June 14, 2024

Did you update?

Yes, I did.

what's the verison of whatsapp-webjs

So I ran npm update whatsapp-web.js

and it updated to version": "1.22.1"

from whatsapp-chatgpt.

connorv001 avatar connorv001 commented on June 14, 2024

Did you update?

Yes, I did.

what's the verison of whatsapp-webjs

So I ran npm update whatsapp-web.js

and it updated to version": "1.22.1"

Try updating puppeteer aslo

from whatsapp-chatgpt.

connorv001 avatar connorv001 commented on June 14, 2024

Did you update?

Yes, I did.

what's the verison of whatsapp-webjs

So I ran npm update whatsapp-web.js

and it updated to version": "1.22.1"

Are you running linux/dockeR?

from whatsapp-chatgpt.

rikuddo91 avatar rikuddo91 commented on June 14, 2024

Did you update?

Yes, I did.

what's the verison of whatsapp-webjs

So I ran npm update whatsapp-web.js
and it updated to version": "1.22.1"

Are you running linux/dockeR?

No, simple Windows 10.

from whatsapp-chatgpt.

connorv001 avatar connorv001 commented on June 14, 2024

Did you update?

Yes, I did.

what's the verison of whatsapp-webjs

So I ran npm update whatsapp-web.js
and it updated to version": "1.22.1"

Are you running linux/dockeR?

No, simple Windows 10.

Tried updating pupetter? waht's ypour node verison?

from whatsapp-chatgpt.

hkvincent avatar hkvincent commented on June 14, 2024

need to change the "whatsapp-web.js": "https://github.com/Julzk/whatsapp-web.js/tarball/jkr_hotfix_7" to "whatsapp-web.js": "https://github.com/Julzk/whatsapp-web.js/tarball/jkr_hotfix_11" in package.json

This didn't help :( SCR-20240404-pudy

Did you run 'npm install' after changing to the new version? The issue is definitely related to the version of web.js.

from whatsapp-chatgpt.

GreenerX avatar GreenerX commented on June 14, 2024

need to change the "whatsapp-web.js": "https://github.com/Julzk/whatsapp-web.js/tarball/jkr_hotfix_7" to "whatsapp-web.js": "https://github.com/Julzk/whatsapp-web.js/tarball/jkr_hotfix_11" in package.json

This didn't help :( SCR-20240404-pudy

Did you run 'npm install' after changing to the new version? The issue is definitely related to the version of web.js.

My JSON looks like this after the npm update and npm install:
SCR-20240406-iwyt

from whatsapp-chatgpt.

GreenerX avatar GreenerX commented on June 14, 2024

Now its just stuck on this:
SCR-20240406-iyad

from whatsapp-chatgpt.

ClaytonCassi avatar ClaytonCassi commented on June 14, 2024

doing this step:

const client = new Client({
		puppeteer: {
			args: ["--no-sandbox"]
		},
		webVersionCache: {
			type: 'remote',
			remotePath: `https://raw.githubusercontent.com/wppconnect-team/wa-version/main/html/${wwebVersion}.html`,
		},
		authStrategy: new LocalAuth({
			dataPath: constants.sessionPath
		})
	});

I solve this error -> const version = indexHtml.match(/manifest-([\d\.]+).json/)[1];
TypeError: Cannot read properties of null (reading '1')

but its raise a new puppetter error - > throw new Error('Evaluation failed: ' + helper_js_1.helper.getExceptionMessage(exceptionDetails));
^

Error: Evaluation failed: TypeError: Cannot read properties of undefined (reading 'push')
this error persist even when u update puppeteer and whatsappweb.js to lastest version.

Has anyone managed to get the application to work?

from whatsapp-chatgpt.

zzzeven avatar zzzeven commented on June 14, 2024

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

from whatsapp-chatgpt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.