wa-automate-nodejs
wa-automate-nodejs copied to clipboard
forceUpdateLiveLocation API Error
Are you using the latest version of the library?
- [x] I have checked and am using the latest version of the library.
What type of session are you experiencing this issue on?
Multi-device and I have set multiDevice to true in my config OR am using the --multi-device flag
What type of host account are you experiencing this issue on?
Business account
Mode
EASY API/CLI
Current Behavior
Executing the forceUpdateLiveLocation using the swagger docu page gives back a
{
"success": false,
"error": {
"name": "TypeError",
"message": "Please set arguments in request json body, not in params. Cannot read properties of undefined (reading 'get')"
}
}
Error in container logs:
middleware -> error Error [TypeError]: Cannot read properties of undefined (reading 'get')
at window.WAPI.forceUpdateLiveLocation (evaluate at /usr/src/app/node_modules/@open-wa/wa-automate/dist/controllers/browser.js:387:110, <anonymous>:1181:28)
at evaluate (evaluate at Client.<anonymous> (/usr/src/app/node_modules/@open-wa/wa-automate/dist/api/Client.js:564:44), <anonymous>:0:22)
at #evaluate (/usr/src/app/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/ExecutionContext.js:391:56)
at async ExecutionContext.evaluate (/usr/src/app/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/ExecutionContext.js:278:16)
at async IsolatedWorld.evaluate (/usr/src/app/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/IsolatedWorld.js:100:16)
at async CdpFrame.evaluate (/usr/src/app/node_modules/puppeteer-core/lib/cjs/puppeteer/api/Frame.js:348:20)
at async CdpPage.evaluate (/usr/src/app/node_modules/puppeteer-core/lib/cjs/puppeteer/api/Page.js:812:20)
Expected Behavior
No response
Steps To Reproduce
- Start the docker container of wa-automate and locate the swagger docu
- Execute the forceUpdateLiveLocation using swagger and a valid group/contant id
create() code OR full CLI command + CONFIG
{
"args": {
"chatid": "[email protected]"
}
}
DEBUG INFO
- Debug info: {
"WA_VERSION": "2.3000.1021878646",
"PAGE_UA": "WhatsApp/2.2147.16 Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36",
"WA_AUTOMATE_VERSION": "4.76.0",
"BROWSER_VERSION": "Chrome/133.0.6943.126",
"OS": "Linux 6.8",
"START_TS": 1744702153633,
"RAM_INFO": "Total: 8.28 GB | Free: 6.58 GB",
"PPTR_VERSION": "23.11.1"
}
Environment
Using Docker
Screenshots/Logs
No response
Anything else?
No response