yisbug / whatsapp-nodejs

This is a library based on whatsapp androd latest version, you can use it build your own app.
36 stars 12 forks source link

Send Text Message Error #6

Closed aarctb closed 1 year ago

aarctb commented 1 year ago

Hello,

I was able to login perfectly but I when try to send a message I got the bellow exception:

I used the sample code Send Text Message.

res = await whatsapp.sendContactTextMessage({ jid: '5541878385XX', message: 'hello world.', });

Nov 17 16:05:41 WA[18912] ERROR: create_session error SignalProtocolAddress { _name: '5541878385XX', _deviceId: 1 } TypeError: Cannot read properties of null (reading 'version') at Function.deserialize (C:\Projetos\Ibsys\lab\whatsapp-nodejs\node_modules\@privacyresearch\libsignal-protocol-typescript\lib\session-record.js:56:18) at SessionBuilder. (C:\Projetos\Ibsys\lab\whatsapp-nodejs\node_modules\@privacyresearch\libsignal-protocol-typescript\lib\session-builder.js:63:57) at Generator.next () at fulfilled (C:\Projetos\Ibsys\lab\whatsapp-nodejs\node_modules\@privacyresearch\libsignal-protocol-typescript\lib\session-builder.js:24:58) at processTicksAndRejections (node:internal/process/task_queues:96:5) TypeError: Cannot read properties of null (reading 'version') TypeError: Cannot read properties of null (reading 'version') C:\Projetos\Ibsys\lab\whatsapp-nodejs\node_modules\@privacyresearch\curve25519-typescript\lib\built\curveasm.js:136 throw ex; ^

Error: abort(TypeError: Cannot read properties of null (reading 'version')). Build with -s ASSERTIONS=1 for more info. at process.abort (C:\Projetos\Ibsys\lab\whatsapp-nodejs\node_modules\@privacyresearch\curve25519-typescript\lib\built\curveasm.js:12903:19) at process.emit (node:events:527:28) at emit (node:internal/process/promises:140:20) at processPromiseRejections (node:internal/process/promises:274:27) at processTicksAndRejections (node:internal/process/task_queues:97:32)

aarctb commented 1 year ago

2