Open roysG opened 2 months ago
Just lost my number trying to use this library, for some reason. I paired it, sent a single message with "Test", and got banned instantly . Thinking of migrating to something else, at least for now...
Problem in your code, use it correctly as stated in the documentation.
Describe the bug A clear and concise description of what the bug is.
To Reproduce Steps to reproduce the behavior:
Expected behavior No error
Environment (please complete the following information):
Is this on a server? Linux/Ubuntu
What do your
connectOptions
look like?sock = makeWASocket({ version, logger, agent, printQRInTerminal: !usePairingCode, mobile: useMobile, auth: { creds: state.creds, /* caching makes the store faster to send/recv messages / keys: makeCacheableSignalKeyStore(state.keys, logger), }, msgRetryCounterCache, generateHighQualityLinkPreview: true, // ignore all broadcast messages -- to receive the same // comment the line below out // shouldIgnoreJid: jid => isJidBroadcast(jid), // implement to handle retries & poll updates getMessage, //defaultQueryTimeoutMs: null })
whatsappWebApi.store?.bind(sock.ev)
Do you have multiple clients on the same IP? NO
Are you using a proxy? Yes
Error logs:
Sep 17 04:51:56.032 whatsapp-5c8d96685-dst8m stdout: {"level":20,"time":"2024-09-17T01:51:55.663Z","pid":197,"hostname":"whatsapp-5c8d96685-dst8m","syncAction":{"syncAction":{"index":"WyJzZW50aW5lbCIsImNyaXRpY2FsX2Jsb2NrIl0=","value":{"timestamp":"1726537914853","keyExpiration":{"expiredKeyEpoch":57298}},"padding":"","version":3},"index":["sentinel","critical_block"]},"id":"critical_block","msg":"unprocessable update"} Sep 17 04:51:56.032 whatsapp-5c8d96685-dst8m processing sync action Sep 17 04:51:56.032 whatsapp-5c8d96685-dst8m unprocessable update Sep 17 04:51:56.032 whatsapp-5c8d96685-dst8m released buffered events Sep 17 04:51:56.032 whatsapp-5c8d96685-dst8m recv 70 bytes, total recv 70 bytes Sep 17 04:51:56.032 whatsapp-5c8d96685-dst8m recv frame Sep 17 04:51:56.032 whatsapp-5c8d96685-dst8m Sep 17 04:51:56.035 whatsapp-5c8d96685-dst8m stdout: events { Sep 17 04:51:56.035 whatsapp-5c8d96685-dst8m 'connection.update': { Sep 17 04:51:56.035 whatsapp-5c8d96685-dst8m connection: 'close', Sep 17 04:51:56.035 whatsapp-5c8d96685-dst8m lastDisconnect: { error: [Error], date: 2024-09-17T01:51:56.034Z } Sep 17 04:51:56.035 whatsapp-5c8d96685-dst8m } Sep 17 04:51:56.035 whatsapp-5c8d96685-dst8m } Sep 17 04:51:56.035 whatsapp-5c8d96685-dst8m Sep 17 04:51:56.035 whatsapp-5c8d96685-dst8m stdout: Connection closed. You are logged out.
stdout: {"level":10,"time":"2024-09-17T01:51:56.032Z","pid":197,"hostname":"whatsapp-5c8d96685-dst8m","xml":" </stream:error>","msg":"recv xml"}
Sep 17 04:51:56.036
whatsapp-5c8d96685-dst8m
stream errored out
Sep 17 04:51:56.036
whatsapp-5c8d96685-dst8m
connection errored
Sep 17 04:51:56.036
whatsapp-5c8d96685-dst8m
recv frame
Sep 17 04:51:56.036
whatsapp-5c8d96685-dst8m
recv xml
Sep 17 04:51:56.036
whatsapp-5c8d96685-dst8m
connection already closed