phaticusthiccy / WhatsAsenaDuplicated

New Repository for WhatsAsena. Also First UserBot for WhatsApp.
GNU General Public License v3.0
275 stars 1.27k forks source link

scan qr error #214

Closed Huguitis closed 2 years ago

Huguitis commented 2 years ago

WARN [2021-10-21 13:34:51.198 +0000] (106): connect attempt 5 failed: Error: close, retrying... error: {} class: "Baileys"

phaticusthiccy commented 2 years ago

Hi @Huguitis

This error can be caused by several things. Here are some of them:

1) Wrong Session 2) Unstable Connection 3) Inactive WA Web Device

And the solutions to these errors:

1) Please, check your ASENA_SESSION it must start with ASENA;;; 2) Please, check your ethernet speed and connection. 3) Please, check your WA Web devices. You must see Baileys. If you cannot see it, you should redeploy the WhatsAsena.

github-actions[bot] commented 2 years ago

This issue is stale Because it has been open 5 days with no activity. Remove the stale label or comment or this will be closed in 2 days

phaticusthiccy commented 2 years ago

A Remind for This Topic. Are you still able to get this issue?

To @Huguitis

david-lev commented 2 years ago

I have the same problem. Trying to scan the qr code in this link and getting this error:

image

phaticusthiccy commented 2 years ago

Hello. Many people encounter the error in the photo you sent. Let me explain this.

A long time ago, WhatsApp made a system that can work without an internet connection. In short, multi-device support. While this update was very good for users, it turned into a nightmare for developers and API services.

We, the developers, want a system or server to work fast and stable, but the multi-device feature of whatsapp works very differently.

WhatsAsena uses web sockets to connect to whatsapp web. It does this with the Baileys framework. Whatsapp API systems that were stable before have become experimental with this new feature. The version currently in use is really old, I have to rewrite about 50,000 lines of code to update it. Moreover, I need to convert the previously used NodeJS language to Typescript. New sockets unfortunately run very slowly in NodeJS programs.

I tested the new version locally and came to the conclusion that:

Pluses:

Cons:

Since WhatsAsena is an open-source project, the development stages may differ. I will not give any update for this in this case. As we said before, it's hard to tell the next update date. If you are looking for our alternatives, check out Nurutomo's original bot. Remember, except the bot I mentioned above and WhatsAsena, other projects you can find are 95% likely stolen.

Have a nice day

david-lev commented 2 years ago

I suspected that these about linked devices .. Thanks for the detailed explanation and good luck!