Closed radensoft closed 1 year ago
PR is in review bro -> https://github.com/pedroslopez/whatsapp-web.js/pull/1789
cambiar linea 17 de src/util/Injected.js
window.Store.GroupMetadata = window.mR.findModule((module) => module.default && module.default.handlePendingInvite)[0].default;
por esta
window.Store.GroupMetadata = null; //window.mR.findModule((module) => module.default && module.default.handlePendingInvite)[0].default;
Yes. Go to #1789
lütfen düzeltme@pedroslopez
hi memo ceştir
window.Store.GroupMetadata = window.mR.findModule('GroupMetadata')[0].default.GroupMetadata;
OR
window.Store.GroupMetadata = null;
I've modified the src/util/Injected.js file, but the error is still there.
Err: Error: Evaluation failed: TypeError: Cannot read properties of undefined (reading 'default') 2|WASPI-082113920589 | at __puppeteer_evaluation_script__:38:67 2|WASPI-082113920589 | at ExecutionContext._evaluateInternal (/var/WAServer/node_modules/whatsapp-web.js/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:221:19) 2|WASPI-082113920589 | at processTicksAndRejections (node:internal/process/task_queues:96:5) 2|WASPI-082113920589 | at async ExecutionContext.evaluate (/var/WAServer/node_modules/whatsapp-web.js/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:110:16) 2|WASPI-082113920589 | at async Client.initialize (/var/WAServer/node_modules/whatsapp-web.js/src/Client.js:216:9)
@pedroslopez when this change will go live?
Still not working, how to fix it? When you don't use a lot of devices, the problem still remains
Why the error? An error occurs when scanning a qr code and connecting
@DragoLifer the issue has been fixed but the new release has not been created yet, once that done you won't see this issue.
@DragoLifer the issue has been fixed but the new release has not been created yet, once that done you won't see this issue.
can you tell me a temporary way to get this working/running first? maybe some kind of crack or bypass. So that my module can receive and reply to messages.
@adiwirak this works for me in line 17
file src/util/Injected.js
@adiwirak this works for me in line 17
file src/util/Injected.js
I have changed/modified the file. But still error.
by the way, which version are you using for whatsapp-web.js
?
I use "whatsapp-web.js": "^1.18.2"
{ "name": "Server dan Client WA", "version": "1.0.0", "description": "", "main": "index.js", "scripts": { "start": "node ." }, "dependencies": { "express": "^4.17.1", "moment": "^2.29.1", "mongodb": "^4.2.0", "mysql": "^2.18.1", "puppeteer": "^14.1.1", "qrcode": "^1.5.0", "request-promise": "^4.2.6", "shelljs": "^0.8.4", "socket.io": "^4.5.1", "socket.io-client": "^4.5.1", "sprintf-js": "^1.1.2", "util": "^0.12.4", "whatsapp-web.js": "^1.18.2" } }
@adiwirak I'm using version 1.18.3-alpha.0, there's a new release from 1 hour ago
Fixed
Is there an existing issue for this?
Describe the bug
test
Expected behavior
test
Steps to Reproduce the Bug or Issue
test
Relevant Code
test
Browser Type
Chromium
WhatsApp Account Type
Standard
Does your WhatsApp account have multidevice enabled?
Yes, I am using Multi Device
Environment
(node:13056) UnhandledPromiseRejectionWarning: Error: Evaluation failed: TypeErr or: Cannot read properties of undefined (reading 'default') at puppeteer_evaluation_script:14:123 at ExecutionContext._evaluateInternal (H:\Whatsapp 2022\Whatsapp Center\node _modules\puppeteer\lib\cjs\puppeteer\common\ExecutionContext.js:221:19) at processTicksAndRejections (internal/process/task_queues.js:97:5) at async ExecutionContext.evaluate (H:\Whatsapp 2022\Whatsapp Center\node_mo dules\puppeteer\lib\cjs\puppeteer\common\ExecutionContext.js:110:16) at async Client.initialize (H:\Whatsapp 2022\Whatsapp Center\node_modules\wh atsapp-web.js\src\Client.js:267:9) (Use
node --trace-warnings ...
to show where the warning was created) (node:13056) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To termin ate the node process on unhandled promise rejection, use the CLI flag--unhandl ed-rejections=strict
(see https://nodejs.org/api/cli.html#cli_unhandled_rejecti ons_mode). (rejection id: 1) (node:13056) [DEP0018] DeprecationWarning: Unhandled promise rejections are depr ecated. In the future, promise rejections that are not handled will terminate th e Node.js process with a non-zero exit code.Additional context
No response