whatsapp-gateway icon indicating copy to clipboard operation
whatsapp-gateway copied to clipboard

error to create instance

Open Raf1401 opened this issue 2 years ago • 0 comments

When creating an instance the library reports an error and crashes. Never read the QR.

follow the error

1 teste 5519996794031 node:fs:594 handleErrorFromBinding(ctx); ^

Error: ENOENT: no such file or directory, open './public/log/teste.txt' at Object.openSync (node:fs:594:3) at Object.writeFileSync (node:fs:2207:35) at EventEmitter. (file:///C:/Users/VENDEDOR%2016/Desktop/whatsapp-gateway/server/session/Session.js:87:9) at processTicksAndRejections (node:internal/process/task_queues:96:5) { errno: -4058, syscall: 'open', code: 'ENOENT', path: './public/log/teste.txt' }

How can I adjust error?

Raf1401 avatar Nov 24 '22 15:11 Raf1401