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

can't connect when using nodemon #33

Closed
Alwisteins opened this issue Apr 26, 2024 · 3 comments
Closed

can't connect when using nodemon #33

Alwisteins opened this issue Apr 26, 2024 · 3 comments

Comments

@Alwisteins
Copy link

I am trying to apply this library as a WA gateway on my backend server.

I combined the code with my backend server and ran it with 1 command using nodemon.

when I try to run the server and try to make a request on the endpoint to create a session, everything runs normally, the qrcode appears and there are no errors on the server.

but when I try to scan the qrcode, my server always refreshes and causes repeated connections (connecting & connected). so the connection never really connects.

but when I tried to run my server using node command, everything went smoothly and connection to whatsapp was successful

@mimamch
Copy link
Owner

mimamch commented Apr 26, 2024

don't use nodemon, because nodemon will watch and restart server if there is changes on file.

@Alwisteins
Copy link
Author

Thanks sir

@fpiekarski
Copy link

fpiekarski commented May 4, 2024

To

use nodemon, please, create a file nodemon.json in base path of project like this:
{
"ignore": ["lib/.js", "README","./wa_credentials",".w"]
}
nodemon.json

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

3 participants