When sending a post request to /send-message, it returns the error: n.match is not a function, only for the send message, the other functions do not exhibit this behavior, such as send-file-base64.
Environment
**WhatsApp version: 2.2331.x
WA-JS version(s): 2.25.0
Browser: Brave 1.57.53 / Chromium 115.0.5790.170 Alpine Linux
OS: Windows 10/ WSL 2 Ubuntu 20.04
MultiDevice (BETA): yes
Steps to Reproduce
Send a post request to wppconnect-server using the wppconnect-laravel-client
Log Output
error: 2023-08-29T22:06:37.87
8Z n.match is not a function - Error: n.match is not a function
at /usr/src/wpp-server/node_modules/@wppconnect-team/wppconnect/dist/api/helpers/evaluate-and-return.js:107:31
at step (/usr/src/wpp-server/node_modules/@wppconnect-team/wppconnect/dist/api/helpers/evaluate-and-return.js:49:23)
at Object.next (/usr/src/wpp-server/node_modules/@wppconnect-team/wppconnect/dist/api/helpers/evaluate-and-return.js:30:53)
at fulfilled (/usr/src/wpp-server/node_modules/@wppconnect-team/wppconnect/dist/api/helpers/evaluate-and-return.js:21:58)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
JS Stack: TypeError: n.match is not a function
at t.prepareRawMessage (/usr/src/wpp-server/node_modules/@wppconnect/wa-js/dist/wppconnect-wa.js:2:168316)
at async t.sendRawMessage (/usr/src/wpp-server/node_modules/@wppconnect/wa-js/dist/wppconnect-wa.js:2:177395)
at async t.sendTextMessage (/usr/src/wpp-server/node_modules/@wppconnect/wa-js/dist/wppconnect-wa.js:2:178679)
at async pptr:evaluate;%2Fusr%2Fsrc%2Fwpp-server%2Fnode_modules%2F%40wppconnect-team%2Fwppconnect%2Fdist%2Fapi%2Fhelpers%2Fevaluate-and-return.js%3A99%3A56:56:26
Function: function (_a) {
var to = _a.to, content = _a.content, options = _a.options;
return WPP.chat.sendTextMessage(to, content, assign(assign({}, options), { waitForAck: true }));
}
Description
When sending a post request to /send-message, it returns the error: n.match is not a function, only for the send message, the other functions do not exhibit this behavior, such as send-file-base64.
Environment
Steps to Reproduce
Log Output
error: 2023-08-29T22:06:37.87 8Z n.match is not a function - Error: n.match is not a function at /usr/src/wpp-server/node_modules/@wppconnect-team/wppconnect/dist/api/helpers/evaluate-and-return.js:107:31 at step (/usr/src/wpp-server/node_modules/@wppconnect-team/wppconnect/dist/api/helpers/evaluate-and-return.js:49:23) at Object.next (/usr/src/wpp-server/node_modules/@wppconnect-team/wppconnect/dist/api/helpers/evaluate-and-return.js:30:53) at fulfilled (/usr/src/wpp-server/node_modules/@wppconnect-team/wppconnect/dist/api/helpers/evaluate-and-return.js:21:58) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) JS Stack: TypeError: n.match is not a function at t.prepareRawMessage (/usr/src/wpp-server/node_modules/@wppconnect/wa-js/dist/wppconnect-wa.js:2:168316) at async t.sendRawMessage (/usr/src/wpp-server/node_modules/@wppconnect/wa-js/dist/wppconnect-wa.js:2:177395) at async t.sendTextMessage (/usr/src/wpp-server/node_modules/@wppconnect/wa-js/dist/wppconnect-wa.js:2:178679) at async pptr:evaluate;%2Fusr%2Fsrc%2Fwpp-server%2Fnode_modules%2F%40wppconnect-team%2Fwppconnect%2Fdist%2Fapi%2Fhelpers%2Fevaluate-and-return.js%3A99%3A56:56:26 Function: function (_a) { var to = _a.to, content = _a.content, options = _a.options; return WPP.chat.sendTextMessage(to, content, assign(assign({}, options), { waitForAck: true })); }
Your Code
Additional context / Screenshot