mirror of
https://github.com/mimamch/wa-multi-session.git
synced 2026-04-25 16:55:59 +03:00
[GH-ISSUE #33] can't connect when using nodemon #26
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Alwisteins on GitHub (Apr 26, 2024).
Original GitHub issue: https://github.com/mimamch/wa-multi-session/issues/33
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 commented on GitHub (Apr 26, 2024):
don't use nodemon, because nodemon will watch and restart server if there is changes on file.
@Alwisteins commented on GitHub (Apr 26, 2024):
Thanks sir
@fpiekarski commented on GitHub (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