Skip to content

[bug] The ID specified in XADD is equal or smaller than the target stream top item #768

@oleg-smith

Description

@oleg-smith

Describe the bug. A clear and concise description of what the bug is.

Seeing this error while publishing using REST API.

The error does not appear all the time.

{
  "level": "error",
  "channel": "user_notifications_8835df4f-be05-4a38-896f-6ce29e89f44c",
  "error": "Error running script (call to f_33ea4857923b0bb12fdf1417bdfd7b5eab7c177f): @user_script:23: ERR The ID specified in XADD is equal or smaller than the target stream top item",
  "time": "2024-01-29T15:47:07Z",
  "message": "error publishing message in engine"
}

Centrifugo config:

{
  "admin": true,
  "allow_history_for_client": true,
  "allow_presence_for_client": true,
  "allow_presence_for_subscriber": true,
  "allow_publish_for_client": true,
  "allow_subscribe_for_client": true,
  "allow_user_limited_channels": true,
  "engine": "redis",
  "history_size": 1000,
  "history_ttl": "2160h",
  "log_level": "trace",
  "namespaces": [],
  "presence": true,
  "proxy_publish": true,
  "proxy_publish_timeout": "5s",
  "proxy_rpc_timeout": "5s",
  "publish": true
}

Using a single node Redis cluster

Versions

Centrifugo version is 5.1.1
Client library used is centrifuge- of version
Operating system is <???>

Steps to Reproduce How can the bug be triggered?

publish a message using REST API with a API token

Expected behavior What output or behaviour were you expecting instead?

...

Code Snippets A minimum viable code snippet can be useful.

Your code here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions