Skip to content

[BUG] message.upsert events stop #35

Description

@nrbrttth

Hello all!

Describe the bug
I'm facing a problem when starting a process, connecting some phone numbers through QR code, everything's working fine, I can send messages, receive upsert events.
But after some time (4-5 hours) the socket stops receiving the upsert events. I can still connect/disconnect, but the message upsert events won't come.

To Reproduce
Steps to reproduce the behavior:

  1. Created some new connection
  2. Wait for some time (mostly 4-5 hours)
  3. Message events won't come, though there are active conversations

Expected behavior
The message events shouldn't stop, or if there's any problem with the socket, there should be an error message.

Environment:

  • Express.js server running 5-6 socket connections (later we want more)
  • My connectOptions:
const browser = Browsers.appropriate('Desktop');
const socket = makeWASocket({
  logger: this.logger, // pino logger with level 'error'
  syncFullHistory: false,
  shouldSyncHistoryMessage: () => false,
  auth: { // custom MySQL auth state
    creds: state?.creds,
    keys: state?.keys,
  },
  browser: browser
});
  • No proxy used

Any help would be welcome!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions