Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error to create instance #4

Closed
Raf1401 opened this issue Nov 24, 2022 · 1 comment
Closed

error to create instance #4

Raf1401 opened this issue Nov 24, 2022 · 1 comment

Comments

@Raf1401
Copy link

Raf1401 commented Nov 24, 2022

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?

@fawwaz37
Copy link
Owner

The .txt file is not created, try creating a manual file with the name teste.txt in the public/log folder

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants