[BUG][WEBJS] - /api/{session}/chats?limit=100&offset=0
response
{ "statusCode": 500, "timestamp": "2024-08-09T08:32:10.144Z", "exception": { "stack": "Error: Evaluation failed: TypeError: Cannot read properties of undefined (reading 'getChats')\n at pptr://puppeteer_evaluation_script:2:38\n at ExecutionContext._ExecutionContext_evaluate (/app/node_modules/whatsapp-web.js/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ExecutionContext.js:229:15)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async ExecutionContext.evaluate (/app/node_modules/whatsapp-web.js/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ExecutionContext.js:107:16)\n at async WebjsClient.getChats2 (/app/dist/core/engines/webjs/WebjsClient.js:19:23)\n at async WebjsClient.getChats (/app/dist/core/engines/webjs/WebjsClient.js:16:16)", "message": "Evaluation failed: TypeError: Cannot read properties of undefined (reading 'getChats')\n at pptr://puppeteer_evaluation_script:2:38", "name": "Error" }, "request": { "path": "/api/1821820790430871552/chats?limit=100&offset=0", "method": "GET", "body": {}, "query": { "limit": "100", "offset": "0" } }, "version": { "version": "2024.8.2", "engine": "WEBJS", "tier": "PLUS", "browser": "/usr/bin/google-chrome-stable" } }
Could you try to stop and start the session again? Looks like it's in STOPPED or FAILED status We need to add validation for that to have a better response :thinking:
I'm sure my session is working here
I am true that my account is already working. My account has a lot of chats data, and I am not sure if this is the reason for it
Could you try to stop and start the session again? Looks like it's in STOPPED or FAILED status We need to add validation for that to have a better response 🤔
I have no problem using another account, but if this account does not have a limit on the number of records, it will still be blocked. So I tried using limit and it was like reporting an error
Does it work right after restart or never? May be you could check docker logs if there's any errors when you start THIS account (with many chats) in a dedicated container :pray: It could be the issue, but we need to have more info