waha icon indicating copy to clipboard operation
waha copied to clipboard

[BUG][WEBJS] - /api/{session}/chats?limit=100&offset=0

Open TimousFly opened this issue 1 year ago • 3 comments

  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" } }

TimousFly avatar Aug 09 '24 08:08 TimousFly

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:

patron:PRO

devlikepro avatar Aug 09 '24 08:08 devlikepro

I'm sure my session is working here

error

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

TimousFly avatar Aug 09 '24 09:08 TimousFly

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 🤔

patron:PRO

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

TimousFly avatar Aug 09 '24 09:08 TimousFly

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

patron:PRO

devlikepro avatar Aug 13 '24 06:08 devlikepro

@TimousFly hi! Could you try 2024.8.4 :pray: :crossed_fingers:

patron:PRO

devlikepro avatar Aug 18 '24 09:08 devlikepro