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
connectOptions
look 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: open
- Created 8 months ago
- Comments: 16 (2 by maintainers)
setting
syncFullHistory: false
inmakeWASocket
and waited for 30 seconds before sending a first message resolved my issue.¿Cómo manejamos el reinicio con el error 428?
This happens when you spend hours without receiving any events, for example: without receiving messages for a long time