Baileys: Error 428 - Precondition Required[BUG]
Describe the bug When trying to send an image I get error 428.
To Reproduce Steps to reproduce the behavior:
- Created a new connection
- Schedule a cron-job every 12 hours, to run an image sending function
Expected behavior Send the image.
Environment (please complete the following information):
-
Is this on a server? Yes
-
What do your
connectOptionslook like? -
Do you have multiple clients on the same IP? No
-
Are you using a proxy? No
Additional context
My function is:
The error is:
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 17 (2 by maintainers)
setting
syncFullHistory: falseinmakeWASocketand waited for 30 seconds before sending a first message resolved my issue.¿Cómo manejamos el reinicio con el error 428?
hello bro, what if the status code is 408 when using conn.profilePictureUrl
This happens when you spend hours without receiving any events, for example: without receiving messages for a long time
I handle reconnection on update event: