10 months ago
I'm creating a bot, my backend is in Node and my frontend is in React. Locally, everything works fine, I have no issues, but when I deploy it to Railway, I get this error. I'm using:
"@whiskeysockets/baileys": "^6.7.13"Error:
Railway Debug Info: { errorCode: 405, errorMessage: 'Connection Failure', lastDisconnect: Error: Connection Failure at WebSocketClient. (/app/node_modules/@whiskeysockets/baileys/lib/Socket/socket.js:524:13) at WebSocketClient.emit (node:events:517:28) at /app/node_modules/@whiskeysockets/baileys/lib/Socket/socket.js:236:35 at Object.decodeFrame (/app/node_modules/@whiskeysockets/baileys/lib/Utils/noise-handler.js:144:17) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) { data: { reason: '405', location: 'frc' }, isBoom: true, isServer: false, output: { statusCode: 405, payload: [Object], headers: {} } },
6 Replies
10 months ago
Hey there! We've found the following might help you get unblocked faster:
If you find the answer from one of these, please let us know by solving the thread!
10 months ago
I'm assuming you're trying to build something with WhatsApp after seeing the baileys. You probably need to use a proxy since WhatsApp possibly denying the request since it's coming from a railway datacenter IP. This will work locally since you have a normal IP. Try the proxy method.
10 months ago
WhatsApp bots are not allowed on the Railway platform under the fair use agreement, please run the bot elsewhere otherwise there is a risk of being banned.
10 months ago
Thank you very much, I had no idea that was prohibited here.Status changed to Awaiting User Response Railway • 10 months ago
Status changed to Closed brody • 10 months ago
