salman0ansari / whatsapp-api-nodejs

RESTful WhatsApp API with Multiple Device Support
GNU General Public License v3.0
1.28k stars 607 forks source link

Instability.. #724

Open caiogrigoleto opened 1 year ago

caiogrigoleto commented 1 year ago

It is very unstable, devices keep losing connection..

If the device is inactive for a long time, can it disconnect from the API?

joaroque commented 1 year ago

@caiogrigoleto please explain it better :)

caiogrigoleto commented 1 year ago

I noticed that when the cell phone is inactive for a long time it is automatically disconnected from the API, in some cases it keeps switching between connected and disconnected very quickly, I have already looked at the log and it does not show any error or information regarding this disconnection. @joaroque

salman0ansari commented 1 year ago

I noticed that when the cell phone is inactive for a long time it is automatically disconnected from the API, in some cases it keeps switching between connected and disconnected very quickly, I have already looked at the log and it does not show any error or information regarding this disconnection. @joaroque

You have to open whatsapp app on your phone once in 14 days if you don't you device will be logged out.

https://faq.whatsapp.com/378279804439436#:~:text=Your%20phone%20doesn't%20need,account%20and%20link%20new%20devices.

exallhost commented 1 year ago

I'm facing the same problem, the sessions drop in less than approximately 4 hours.

This started to occur when I migrated to Docker. I'll do a test removing it from Docker and return here.

caiogrigoleto commented 1 year ago

I'm facing the same problem, the sessions drop in less than approximately 4 hours.

This started to occur when I migrated to Docker. I'll do a test removing it from Docker and return here.

How did you manage to solve the problems?

solonalbuquerque commented 1 year ago

We are also having issues with sessions definitely crashing from time to time, and also with sessions leaving and coming back. We use the last code.

exallhost commented 1 year ago

I'm facing the same problem, the sessions drop in less than approximately 4 hours. This started to occur when I migrated to Docker. I'll do a test removing it from Docker and return here.

How did you manage to solve the problems?

Yes, after removing Docker I had an improvement of 50%, before 10 accounts dropped today only 5 are dropping.

caiogrigoleto commented 1 year ago

I'm facing the same problem, the sessions drop in less than approximately 4 hours. This started to occur when I migrated to Docker. I'll do a test removing it from Docker and return here.

How did you manage to solve the problems?

Yes, after removing Docker I had an improvement of 50%, before 10 accounts dropped today only 5 are dropping.

I'm going to try to do this, run outside of docker ..