WhiskeySockets / Baileys

Lightweight full-featured typescript/javascript WhatsApp Web API
https://baileys.whiskeysockets.io/
MIT License
3.84k stars 1.31k forks source link

[BUG] Problem connecting to device #1039

Open lucas-linvix opened 1 month ago

lucas-linvix commented 1 month ago

Describe the bug Hello everyone, I'm having a problem with the Baileys connection with the cell phone I'm connected to. I am currently using version 6.7.7 and my cell phone is connected using WhatsApp Business. In the first few days there were no problems, everything was working ok, however, recently I have been having problems, as my connection is active, but I am not able to forward any messages or receive messages via Baileys. For everything to work normally again, I need to disconnect the device and connect it again, however, this behavior is showing instability and I haven't found anything on my consoles or errors regarding this, including for other customers who are also using my code where I connect to your devices, this problem does not occur.

cvchelles commented 3 weeks ago

Conseguiu Resolver?

lucas-linvix commented 3 weeks ago

Conseguiu Resolver? No, I'm still waiting for some help

wilsinho8 commented 3 weeks ago

its a problem with libsignal (protocol that decrypts and encrypts the sessions and messages) no solution yet

lucas-linvix commented 3 weeks ago

its a problem with libsignal (protocol that decrypts and encrypts the sessions and messages) no solution yet

I understand, do you know if somebody find a solution and make a PR about?

Zain-ul-din commented 3 weeks ago

its a problem with libsignal (protocol that decrypts and encrypts the sessions and messages) no solution yet

Also, can you guys move the libsignal dependency to HTTP instead of git many people with no SSH are facing errors while installing the package.

lucas-linvix commented 3 weeks ago

its a problem with libsignal (protocol that decrypts and encrypts the sessions and messages) no solution yet

Also, can you guys move the libsignal dependency to HTTP instead of git many people with no SSH are facing errors while installing the package.

@Zain-ul-din By doing this, could it at least help for now to prevent this error from occurring? Did not result in other impacts to other Baileys features?

wilsinho8 commented 3 weeks ago

atures?

will not solve, for now no solution to the problem

lucas-linvix commented 3 weeks ago

atures?

will not solve, for now no solution to the problem

ok, if somebody have any update about a solution or treatment for this error, please share here.

Zain-ul-din commented 3 weeks ago

its a problem with libsignal (protocol that decrypts and encrypts the sessions and messages) no solution yet

Also, can you guys move the libsignal dependency to HTTP instead of git many people with no SSH are facing errors while installing the package.

@Zain-ul-din By doing this, could it at least help for now to prevent this error from occurring? Did not result in other impacts to other Baileys features?

yes! All you have to do just change the git dependency to HTTP that's it. see this code

lucas-linvix commented 2 weeks ago

hell, now we have just to wait and give good luck to @krub image

wilsinho8 commented 2 weeks ago

hell, now we have just to wait and give good luck to @krub image

Purp too

https://github.com/WhiskeySockets/Baileys/issues/886#issuecomment-2254153101

Skidy89 commented 2 weeks ago

purp too (btw im krub)

lucas-linvix commented 2 weeks ago

ok a don`t know who will fix this, but a really grateful if someone can fix this current problem. If you can tell me when, it will be great too. I don't want to boring, but its sothing have with a lot of headache. Again, thanks guys for respond.

devora371 commented 2 weeks ago

Using version 6.7.4, I am able to receive messages, but it only works for one WhatsApp account at a time. If I add another account, it don't recive messages for new account. I first need to remove the first device and then add the new one to start receiving messages from the new WhatsApp account. Receiving messages from multiple WhatsApp accounts simultaneously is not possible.

const { version, isLatest } = await fetchLatestBaileysVersion()
const WA = makeWASocket({
  version: version,
  printQRInTerminal: true,
  mobile: false,
  keepAliveIntervalMs: 10000,
  syncFullHistory: false,
  downloadHistory: false,
  markOnlineOnConnect: true,
  defaultQueryTimeoutMs: undefined,
  linkPreviewImageThumbnailWidth: 1980,
  generateHighQualityLinkPreview: true,
  auth: state,
  logger: P({ level: 'fatal' }),
  browser: ["JMD Infotech", "Safari", "16.5"],
});
wilsinho8 commented 2 weeks ago

purp too (btw im krub)

Hey Krub any news my friend?

lucas-linvix commented 2 weeks ago

purp too (btw im krub)

Hey Krub any news my friend?

not yet I have to talk in the community and nobody have a correction for the problem ou news about that.

image

image