open-wa/wa-automate-docker

Error when use /sendText request #56

willmaraujo posted onGitHub

Suddenly I'm receiving error when try to send a text using /sendText API

Request

`curl -X 'POST' \
  'http://picluster:8081/sendText' \
  -H 'accept: */*' \
  -H 'Content-Type: application/json' \
  -d '{
  "args": {
    "to": "1203630426377605832@g.us",
    "content": "Olรก!"
  }
}'

Response

{
  "success": false,
  "error": {
    "name": "Error",
    "message": "Evaluation failed: TypeError: Cannot read properties of undefined (reading 'length')\n    at window.WAPI.sendMessage (pptr://__puppeteer_evaluation_script__:803:56)\n    at pptr://__puppeteer_evaluation_script__:3:29"
  }
}

Fund this Issue

$0.00
Funded

Pull requests