whatsapp-api-nodejs icon indicating copy to clipboard operation
whatsapp-api-nodejs copied to clipboard

Crashing error after initializing

Open tinyCoder32 opened this issue 2 years ago • 5 comments

I get this when I initialize an instance that is already active.

{"level":50,"time":1662837474317,"pid":22,"hostname":"4dec5e4c-b299-4856-bdfc-60d5eb891e07","err":{"type":"TypeError","message":"Cannot read properties of null (reading 'chat')","stack":"TypeError: Cannot read properties of null (reading 'chat')\n at WhatsAppInstance.getChat (/app/src/api/class/instance.js:1078:32)\n at processTicksAndRejections (node:internal/process/task_queues:96:5)\n at async WhatsAppInstance.SendWebhook (/app/src/api/class/instance.js:113:24)\n at async EventEmitter.<anonymous> (/app/src/api/class/instance.js:506:17)"},"msg":"Cannot read properties of null (reading 'chat')"}

tinyCoder32 avatar Sep 10 '22 19:09 tinyCoder32

This keeps happening all the time.

tinyCoder32 avatar Sep 13 '22 15:09 tinyCoder32

@tinyCoder32 use are using this for bulk messaging ?

sairmali avatar Sep 18 '22 04:09 sairmali

No, just sending a verification code from a login page.

On 18 Sep 2022, at 7:07 AM, sairmali @.***> wrote:

 @tinyCoder32 use are using this for bulk messaging ?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.

tinyCoder32 avatar Sep 18 '22 06:09 tinyCoder32

your npm and node version ?

sairmali avatar Sep 18 '22 14:09 sairmali

Latest, I'm deploying to Heroku.

tinyCoder32 avatar Sep 18 '22 21:09 tinyCoder32