Skip to content

Pushover-Node crashes nodered, when message-text is empty #1137

Description

@thomaspz

Which node are you reporting and issue on?

node-red-node-pushover

What are the steps to reproduce?

send messagen with pushover without text or text === ""

What happens?

Node-Red Crashes

What did you expect to happen?

No Crash, only log the error.

In the node-red-node-pushover node there is a util.log, which crashed node-red 5.0.0 on publishing pushover Message, with empty- text. see:

57-pushover.js
16 Jun 18:49:57 - [error] TypeError: util.log is not a function at Pushover.onerror (/data/node_modules/node-red-node-pushover/57-pushover.js:29:26)

Example flow

paste your flow here

Environment

  • Node-RED version: 5.0.0
  • Node.js version: v24.16.0
  • npm version: 11.16.0
  • Platform/OS: docker
  • Browser: chrome

using node-red docker with with image: nodered/node-red:5.0.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions