Skip to content

RBE node: empty object is blocked #5997

Closed

Description

@m-schaeffler

Current Behavior

the RBE node in default configuration is blocking a payload of {} even if it is the first or a changed message.

Expected Behavior

not to block {} totally

Steps To Reproduce

import the demo flow and press:

  1. {}
  2. 1
  3. {}
  4. 1

You see that the {} is blocked, but the 1 is sent out both times.

Example flow

[{"id":"9a81ee9df82e6420","type":"rbe","z":"dc41ce16b6e86328","name":"","func":"rbe","gap":"","start":"","inout":"out","septopics":true,"property":"payload","topi":"topic","x":490,"y":500,"wires":[["4a5693f710fd810e"]]},{"id":"4a5693f710fd810e","type":"debug","z":"dc41ce16b6e86328","name":"debug 3","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":640,"y":500,"wires":[]},{"id":"fcc75f6002c4f11c","type":"inject","z":"dc41ce16b6e86328","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"test","payload":"{}","payloadType":"json","x":330,"y":500,"wires":[["9a81ee9df82e6420"]]},{"id":"138ef847cc763562","type":"inject","z":"dc41ce16b6e86328","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"test","payload":"1","payloadType":"json","x":330,"y":540,"wires":[["9a81ee9df82e6420"]]}]

Environment

  • Node-RED version: 5.0.8
  • Node.js version: 26.11.1
  • npm version:
  • Platform/OS: Raspberry Pi 5
  • Browser:

Activity

  1. hardillb commented on Oct 12, 2026

    @hardillb
    Member

    Hmm, the current code uses an empty object as it's place holder value.

    Will need to investigate if that can be changed to something safely like undefined or null (null is probably safest)

  2. hardillb commented on Oct 12, 2026

    @hardillb
    Member

    ahh, no

    On closer inspection, the node.previous is a map, which is keyed by the msg.topic value to store multiple previous values.

  3. hardillb commented on Oct 12, 2026

    @hardillb
    Member

    I have a potential fix, will need to make sure it doesn't break anything

  4. added a commit that references this issue on Oct 14, 2026
    236d685
  5. m-schaeffler commented on Oct 15, 2026

    @m-schaeffler
    ContributorAuthor

    tested it with a patched rbe.js as ok

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions