venom: this._find is not a function
Description
Getting this error on running venom 3.1.2 now
Log Output
(node:31737) UnhandledPromiseRejectionWarning: Error: Evaluation failed: TypeError: this._find is not a function
at j._serverQuery (https://web.whatsapp.com/bootstrap_qr.abbc2ea8366e2cd9a145.js:55:334921)
at j._query (https://web.whatsapp.com/bootstrap_qr.abbc2ea8366e2cd9a145.js:55:334450)
at j.find (https://web.whatsapp.com/bootstrap_qr.abbc2ea8366e2cd9a145.js:55:332582)
at Object.window.WAPI.window.WAPI.getChat (/Users/ujjawalchauhan/Dropbox/mywasender/node_modules/venom-bot/dist/lib/wapi/wapi.js:1:55806)
at Object.window.WAPI.window.WAPI.sendExist (/Users/ujjawalchauhan/Dropbox/mywasender/node_modules/venom-bot/dist/lib/wapi/wapi.js:1:30002)
at async l (/Users/ujjawalchauhan/Dropbox/mywasender/node_modules/venom-bot/dist/lib/wapi/wapi.js:1:24700)
at ExecutionContext._evaluateInternal (/Users/ujjawalchauhan/Dropbox/mywasender/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:221:19)
at process._tickCallback (internal/process/next_tick.js:68:7)
(node:31737) 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(). (rejection id: 1)
(node:31737) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.```
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 2
- Comments: 22 (5 by maintainers)
wapi.js.txt Rename the file to .js and place in the correct place just as a quick fix
thanks @jsuceir and @fibonaci
open pull in venom git
I resolved this issue with this code:
if( !Store.Chat._find ) { Store.Chat._findAndParse = Store.BusinessProfile._findAndParse; Store.Chat._find = Store.BusinessProfile._find; }
Em qua., 1 de set. de 2021 às 07:28, Ahdian Rawuli @.***> escreveu: