Skip to content

[BUG] 405 Method Not Allowed error  #1939

Description

@DevelopmentsEASOFT

Hello, I’m experiencing an issue when trying to start a new WhatsApp session using Baileys. The connection fails immediately with a 405 Method Not Allowed error and the WebSocket cannot connect to WhatsApp.

{
"error": {
"data": {
"reason": "405",
"location": "lla"
},
"isBoom": true,
"isServer": false,
"output": {
"statusCode": 405,
"payload": {
"statusCode": 405,
"error": "Method Not Allowed",
"message": "Connection Failure"
},
"headers": {}
}
},
"date": "2025-10-15T14:33:13.295Z"
}

Steps to reproduce:

Start a new session with useMultiFileAuthState.

Wait for the QR code or connection update.

Instead of receiving a QR, the connection closes with the error above.

Expected behavior: A QR code should be generated so the user can scan and log in.

Actual behavior: The socket fails to connect and throws 405 Method Not Allowed – Connection Failure.

Environment:

Baileys version: LATEST

Node.js version: LATEST

OS: Windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions