Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG][WEBJS] - Unable to send reply to specific message #576

Open
ehussain opened this issue Oct 9, 2024 · 0 comments
Open

[BUG][WEBJS] - Unable to send reply to specific message #576

ehussain opened this issue Oct 9, 2024 · 0 comments
Labels
bug Something isn't working patron:ADVANCED

Comments

@ehussain
Copy link

ehussain commented Oct 9, 2024

Describe the bug

When I reply to specific version then message should be sent.

Version

{
  "version": "2024.10.3",
  "engine": "WEBJS",
  "tier": "PLUS",
  "browser": "/usr/bin/google-chrome-stable"
}

To Reproduce Steps to reproduce the behavior:
Pick any message and send reply_to.

Expected behavior

It should send a reply to the message

Engine I'm using WEBJS engine.

Requests - Responses

POST /api/reply
{"chatId":"xcxxx@c.us","session":"xxxx","type":"text","text":".","reply_to":"false_xxxxx@c.us_12D20EC2E7A34340A1EFF8D747EXXXX"}

{"statusCode":500,"timestamp":"2024-10-09T03:08:08.071Z","exception":{"stack":"Error: Evaluation failed: Error: Could not get the quoted message.\n    at new Error (<anonymous>:6:31)\n    at window.WWebJS.sendMessage (pptr://__puppeteer_evaluation_script__:50:23)\n    at async pptr://__puppeteer_evaluation_script__:10:25\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:105: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.sendMessage (/app/node_modules/whatsapp-web.js/src/Client.js:956:25)","message":"Evaluation failed: Error: Could not get the quoted message.\n    at new Error (<anonymous>:6:31)\n    at window.WWebJS.sendMessage (pptr://__puppeteer_evaluation_script__:50:23)\n    at async pptr://__puppeteer_evaluation_script__:10:25","name":"Error"},"request":{"path":"/api/reply","method":"POST","body":{"chatId":"xxxxxxx@c.us","session":"xxxxx","type":"text","text":".","reply_to":"false_xxxxxxx@c.xxxxxxxxxxx"},"query":{}},"version":{"version":"2024.10.3","engine":"WEBJS","tier":"PLUS","browser":"/usr/bin/google-chrome-stable"}}

Docker Logs

[03:08:08.071] INFO (15): request errored {"reqId":11,"req":{"id":11,"method":"POST","url":"/api/reply","query":{},"params":{"0":"api/reply"}},"res":{"statusCode":500},"responseTime":4}
    err: {
      "type": "Error",
      "message": "Evaluation failed: Error: Could not get the quoted message.\n    at new Error (<anonymous>:6:31)\n    at window.WWebJS.sendMessage (pptr://__puppeteer_evaluation_script__:50:23)\n    at async pptr://__puppeteer_evaluation_script__:10:25",
      "stack":
          Error: Evaluation failed: Error: Could not get the quoted message.
              at new Error (<anonymous>:6:31)
              at window.WWebJS.sendMessage (pptr://__puppeteer_evaluation_script__:50:23)
              at async pptr://__puppeteer_evaluation_script__:10:25
              at ExecutionContext._ExecutionContext_evaluate (/app/node_modules/whatsapp-web.js/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ExecutionContext.js:229:15)
              at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
              at async ExecutionContext.evaluate (/app/node_modules/whatsapp-web.js/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ExecutionContext.js:107:16)
              at async WebjsClient.sendMessage (/app/node_modules/whatsapp-web.js/src/Client.js:956:25)
    }

patron:ADVANCED

@ehussain ehussain added the bug Something isn't working label Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working patron:ADVANCED
Projects
None yet
Development

No branches or pull requests

1 participant