Baileys: [BUG] Connection Closed an Timeouts erros
Describe the bug a lot of my connections after a some time connected returns the timeouts error and connection closed To Reproduce
|grupopeg-backend | at async SendMessage (/home/deploy/grupopeg/backend/dist/helpers/SendMessage.js:27:23) 0|grupopeg-backend | at async Queue.handleSendMessage (/home/deploy/grupopeg/backend/dist/queues.js:110:9) 0|grupopeg-backend | “data”: null, 0|grupopeg-backend | “isBoom”: true, 0|grupopeg-backend | “isServer”: false, 0|grupopeg-backend | “output”: { 0|grupopeg-backend | “statusCode”: 428, 0|grupopeg-backend | “payload”: { 0|grupopeg-backend | “statusCode”: 428, 0|grupopeg-backend | “error”: “Precondition Required”, 0|grupopeg-backend | “message”: “Connection Closed” 0|grupopeg-backend | }, 0|grupopeg-backend | “headers”: {} 0|grupopeg-backend |
|grupopeg-backend | at async SendMessage (/home/deploy/grupopeg/backend/dist/helpers/SendMessage.js:27:23) 0|grupopeg-backend | at async Queue.handleSendMessage (/home/deploy/grupopeg/backend/dist/queues.js:110:9) 0|grupopeg-backend | “data”: null, 0|grupopeg-backend | “isBoom”: true, 0|grupopeg-backend | “isServer”: false, 0|grupopeg-backend | “output”: { 0|grupopeg-backend | “statusCode”: 428, 0|grupopeg-backend | “payload”: { 0|grupopeg-backend | “statusCode”: 428, 0|grupopeg-backend | “error”: “Precondition Required”, 0|grupopeg-backend | “message”: “timeOut” 0|grupopeg-backend | }, 0|grupopeg-backend | “headers”: {} 0|grupopeg-backend |
Expected behavior A clear and concise description of what you expected to happen.
Environment (please complete the following information):
- Is this on a server?
- What do your
connectOptionslook like? - Do you have multiple clients on the same IP?
- Are you using a proxy?
Additional context Add any other context about the problem here.
About this issue
- Original URL
- State: open
- Created 2 years ago
- Reactions: 8
- Comments: 20
Since this is most active issue on the Timed Out issues, and this was a frequent issue for me causing process crash.
I’ve done some work around my issue, which I think might be related to this one: My issue: https://github.com/WhiskeySockets/Baileys/issues/1361 My draft PR: https://github.com/WhiskeySockets/Baileys/pull/1363
If anyone can test my PR fix, I’d like to know how this goes for others having similar issue. Cheers!