[GH-ISSUE #33] can't connect when using nodemon #26

Closed
opened 2026-02-27 10:25:28 +03:00 by kerem · 3 comments
Owner

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

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
kerem closed this issue 2026-02-27 10:25:28 +03:00
Author
Owner

@mimamch commented on GitHub (Apr 26, 2024):

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

<!-- gh-comment-id:2078665947 --> @mimamch commented on GitHub (Apr 26, 2024): don't use nodemon, because nodemon will watch and restart server if there is changes on file.
Author
Owner

@Alwisteins commented on GitHub (Apr 26, 2024):

Thanks sir

<!-- gh-comment-id:2078729000 --> @Alwisteins commented on GitHub (Apr 26, 2024): Thanks sir
Author
Owner

@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

<!-- gh-comment-id:2094152623 --> @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](https://github.com/mimamch/wa-multi-session/files/15209763/nodemon.json)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/wa-multi-session-mimamch#26
No description provided.