pascalroget / whatsgpt Goto Github PK
View Code? Open in Web Editor NEWWhatsApp Bot for ChatGPT with multiple user support
License: MIT License
WhatsApp Bot for ChatGPT with multiple user support
License: MIT License
I get the error:
Error: Evaluation failed: TypeError: Cannot read properties of undefined (reading 'LegacyPhoneFeatures')
at puppeteer_evaluation_script:13:76
at ExecutionContext._evaluateInternal (...\whatsgpt\node_modules\whatsapp-web.js\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 (...\whatsgpt\node_modules\whatsapp-web.js\node_modules\puppeteer\lib\cjs\puppeteer\common\ExecutionContext.js:110:16)
at async Client.initialize (...\whatsgpt\node_modules\whatsapp-web.js\src\Client.js:267:9)
Do you have any idea why this happens?
Thanks in advance
Hello Pascal,
I have the problem that then i want to run the script i get this error :
ReferenceError: require is not defined in ES module scope, you can use import instead
This file is being treated as an ES module because it has a '.js' file extension and 'C:\Users\DxDek\Documents\whatsgpt-main\package.json' contains "type": "module". To treat it as a CommonJS script, rename it to use the '.cjs' file extension.
at file:///C:/Users/DxDek/Documents/whatsgpt-main/index.js:9:1
at ModuleJob.run (node:internal/modules/esm/module_job:193:25)
at async Promise.all (index 0)
at async ESMLoader.import (node:internal/modules/esm/loader:530:24)
at async loadESM (node:internal/process/esm_loader:91:5)
at async handleMainPromise (node:internal/modules/run_main:65:12)
and if i change it to Type = commonjs the terminal want that i change it to = module
Dear
DxDek
Can someone help me? My chatgpt instance is running fine, but I can't have a normal conversation because it keeps returning the chat message saying I'm out of context and I need to provide more details... What's the reason for this? Wouldn't it have to work like chatgpt in the browser?
Example:
Me: "What is the largest planet in the solar system?"
ChatGPT: "Jupiter"
Me: "What's the second biggest?"
ChatGPT: "I'm not understanding the context of the conversation, please provide more details."
I tried on windows, I've set up the CHROME_PATH in env and also tried directly in index.js but without success.
I've also tried with chromium but the same thing.
I can't make it work on windows.
The API already updated to include the token. I've also patched your code but I keep getting error 503
I am getting an error when two people send messages at the same time. Is there a solution for this?
Why do I get this error, even though I have passed the right clearance token mentioned in the chatgpt website.
Kindly, help me to fix this!
Great project!!
I get following error at random.
Its running on windows 10
file:///C:/Users/Kliment/Desktop/ChatGPT/whatsgpt/node_modules/chatgpt/build/index.js:1598
const error = new ChatGPTError(result.error.message);
^
ChatGPTError: ChatGPTAPI error 429
at ChatGPTAPIBrowser.sendMessage (file:///C:/Users/Kliment/Desktop/ChatGPT/whatsgpt/node_modules/chatgpt/build/index.js:1598:23)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async file:///C:/Users/Kliment/Desktop/ChatGPT/whatsgpt/index.js:87:24 {
statusCode: 429,
statusText: ''
}
The issue is bellow. After ignoring some WhatsApp-web items, the next wall I hit is this. Did anyone find a fix for this?
Creating new conversation for [email protected]
file:///Users/user/Downloads/whatsgpt-main-5/node_modules/chatgpt/build/index.js:1604
const error = new ChatGPTError(result.error.message);
^
ChatGPTError: ChatGPTAPI error 400
at ChatGPTAPIBrowser.sendMessage (file:///Users/user/Downloads/whatsgpt-main-5/node_modules/chatgpt/build/index.js:1604:23)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async file:///Users/user/Downloads/whatsgpt-main-5/index.js:87:24 {
statusCode: 400,
statusText: ''
}
I believe the modules received updates and broke things. Could someone with more knowledge, review the project. I've spent my entire day without any real progress :(
file:///C:/Stuff/whatsapp-bottt/whatsgpt/node_modules/chatgpt/build/index.js:1464
const error = new ChatGPTError(result.error.message);
^
ChatGPTError: ChatGPTAPI error 429
at ChatGPTAPIBrowser.sendMessage (file:///C:/Stuff/whatsapp-bottt/whatsgpt/node_modules/chatgpt/build/index.js:1464:21)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async file:///C:/Stuff/whatsapp-bottt/whatsgpt/index.js:87:24 {
statusCode: 429,
statusText: ''
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.