{"statusCode":500,"timestamp":"2023-12-17T09:34:58.349Z","exception":{"stack":"ProtocolError: Protocol error (Runtime.callFunctionOn): Promise was collected\n at /app/node_modules/whatsapp-web.js/node_modules/puppeteer/lib/cjs/puppeteer/common/Connection.js:230:24\n at new Promise (<anonymous>)\n at CDPSession.send (/app/node_modules/whatsapp-web.js/node_modules/puppeteer/lib/cjs/puppeteer/common/Connection.js:226:16)\n at ExecutionContext._evaluateInternal (/app/node_modules/whatsapp-web.js/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:204:50)\n at ExecutionContext.evaluate (/app/node_modules/whatsapp-web.js/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:110:27)\n at DOMWorld.evaluate (/app/node_modules/whatsapp-web.js/node_modules/puppeteer/lib/cjs/puppeteer/common/DOMWorld.js:97:24)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)","name":"ProtocolError","originalMessage":"Promise was collected","message":"Protocol error (Runtime.callFunctionOn): Promise was collected"},"request":{"path":"/api/sendText","method":"POST","body":{"chatId":"972547XXXXX@c.us","session":"XXXXX","type":"text","text":"בוקר טוב בת אל , זו לימור \nהפוליסה הנ\"ל בכלל לא נמצאת תחת טיפולנו ואני לא יכולה לבדוק במה מדובר \nניתן לבדוק מול שירות לקוחות של כלל .\nאם תרצי את עזרתי בשיחה מולם לבדיקה עדכני אותי"},"query":{}},"version":{"version":"2023.12.2","engine":"WEBJS","tier":"PLUS","browser":"/usr/bin/chromium"}}
Expected behavior
Message Should be sent successfully. Instead it gives exception.
Describe the bug
Sending a message to a number caused a random exception.
Version
To Reproduce Steps to reproduce the behavior:
Expected behavior
Message Should be sent successfully. Instead it gives exception.
Engine I'm using WEBJS engine.