WhiskeySockets / Baileys

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

[BUG] Error 405 - Connection Failure #999

Open jocimarlopes opened 3 weeks ago

jocimarlopes commented 3 weeks ago

Describe the bug I has this error today, I tryed to update to 6.7.7, but even with that it doesn't start, it just stays with this error.

To Reproduce Steps to reproduce the behavior:

  1. npm i
  2. node app.js (run an project with WhiskeySockets/Baileys)
  3. The QR Code doesn't even appear, it simply gives error 405.
rasyidrafi commented 3 weeks ago

Encountered the same issue; I think WhatsApp updated their WebSocket protocol, which makes the library unable to connect to WhatsApp.

clifthanger commented 3 weeks ago

i have same issue, but solved with update the latest update

jocimarlopes commented 3 weeks ago

I verify the Web Socket Protocol WSS, its the same at all. I think I'm doing any thing to broke the latest update.

I'll debug that and If works, I post here.

sairmali commented 3 weeks ago

+1

rafaelpoa commented 3 weeks ago

"I'm facing the same problem since yesterday. I've tested in every possible way, but it keeps returning a 405 error.

rafaelpoa commented 3 weeks ago

I was facing the same connection issue with a 405 error. I tested with version 6.7.6 and 6.7.7, both with the same problem. I followed a friend's advice and downgraded to 6.6.0. Now it works perfectly.

rasyidrafi commented 3 weeks ago

try do npm update @whiskeysockets/baileys it solve for me

rcesar commented 2 weeks ago

I have a same issue using version 6.7.5

shuxter commented 2 weeks ago

I have a same issue using version 6.7.5

The maintainers recommend updating to 6.7.7 and either using the default version which is 2.3000.1015901307 and do not use the fetchLatestBaileysVersion as it will bring a version that will break your code. We updated to 6.7.7 and use the default version and the errors have not come back.

jocimarlopes commented 2 weeks ago

Someone, I tried to update to version 6.7.7, I tried to downgrade to version 6.6.0.

But all methods lead to the same error (405).

If anyone has an alternative, let me know. I will contact my internet provider to check if there was any blocking, but it would be too much of a coincidence for it to happen on the same day that there was a bug for more than one person.

If anyone has a solution, please post it here. The version I was using is 6.7.5

Here my dependencies:

"dependencies": { "@hapi/boom": "^10.0.1", "@seald-io/nedb": "^4.0.4", "@whiskeysockets/baileys": "^6.7.5", "amqplib": "^0.10.4", "axios": "^1.7.2", "chalk": "^4.1.0", "dotenv": "^8.2.0", "form-data": "^4.0.0", "format-duration-time": "^1.5.4", "fs-extra": "^9.0.1", "hercai": "^12.3.2", "jimp": "^0.16.1", "link-preview-js": "^3.0.5", "lowdb": "^7.0.1", "moment-timezone": "^0.5.31", "node-cache": "^5.1.2", "p-queue": "^8.0.1", "pino": "^8.19.0", "pretty-num": "^0.5.0", "prompt": "^1.1.0", "qrcode": "^1.5.4", "qrcode-terminal": "^0.12.0", "socket.io-client": "^4.7.5" },

Thanks!

andreocunha commented 2 weeks ago

version 6.7.7 is working fine for me. I no longer receive the 405 error.

Lewson commented 2 weeks ago

Fixei em 6.6.0. Funcionou pra mim. Era assim: "@whiskeysockets/baileys": "^6.6.0",

Deixei assim: "@whiskeysockets/baileys": "6.6.0",

Depois: pnpm i

Funcionou!!

jocimarlopes commented 2 weeks ago

Fixei em 6.6.0. Funcionou pra mim. Era assim: "@whiskeysockets/baileys": "^6.6.0",

Deixei assim: "@whiskeysockets/baileys": "6.6.0",

Depois: pnpm i

Funcionou!!

You are the man! Worket for me! Thank you so much. Só agora notei que tu é brasileiro também! Valeu cara, funcionou aqui. E realmente, ontem eu tinha dado um npm update, depois disso até rodou um tempo, mas começou a crashar.

rafaelpoa commented 2 weeks ago

I have a same issue using version 6.7.5

The maintainers recommend updating to 6.7.7 and either using the default version which is 2.3000.1015901307 and do not use the fetchLatestBaileysVersion as it will bring a version that will break your code. We updated to 6.7.7 and use the default version and the errors have not come back.

it actually worked. Latest version of baileys and using the recommended version.

image

jocimarlopes commented 2 weeks ago

Eu estava usando a versão que vem no fetchLatestWaWebVersion()

image

Consegui resolver aqui, obrigado.

DineshValor commented 2 weeks ago

I was using the version that comes in fetchLatestWaWebVersion()

image

I managed to solve it here, thanks.

https://github.com/DineshValor/valor/blob/2bd43d2cf2c75d1023ab4d94af911a13b9a8ce53/lib/connection.js#L62

I'm out of clue, could you help me out in this bot?