open-wa / wa-automate-docker

💬 🤖 The easiest way to turn your WhatsApp into an API. Be sure to 🌟 this repository for updates!
106 stars 31 forks source link

Error when use /sendText request #56

Closed willmaraujo closed 2 years ago

willmaraujo commented 2 years ago

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