question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

node-red-contrib-state-machine runtime errors (Deprecated Events)

See original GitHub issue

Problem/Motivation

The node-red component “node-red-contrib-state-machine” has not been updated in some time and has been apparently abandoned by its maintainer; it has been replaced by “node-red-contrib-persistent-fsm” which appears to be compatible to the behavior of the old component.

The older component was written prior to the availability of “flows:started” and uses an older method of flow setup that is no longer supported in NodeRED.

Expected behavior

No warnings, no indications on flow initiation.

Actual behavior

Debug panel display on deployment with the node in the configuration: "[RED.events] Deprecated use of "nodes-started" event from "/opt/node_modules/node-red-contrib-state-machine/state-machine.js:98:20". Use "flows:started" instead."

Steps to reproduce

  1. Add a flow with the node from “node-red-contrib-state-machine” in use (an inject -> node -> debug flow is fine for this purpose.
  2. Display the Debug window in the side pane.
  3. Deploy.

Proposed changes

A substitution is proposed in the following issue logged against the “node-red-contrib-state-machine” github repository: ISSUE It suggests a config change to the addon, which does in fact function fine:

npm_packages:
- node-red-contrib-persistent-fsm
init_commands:
- npm un node-red-contrib-state-machine --save

The new module is based on the old DeanCording module, and is kept here: node-red-contrib-persistent-fsm It does not appear that the old maintainer is improving the module anymore.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
joelmosescommented, Jan 28, 2021

I was able to provide the maintainer a fix and sent him a pull request. I was able to verify that a simple async delay on the message works fine… I’ll let you know when he replies.

1reaction
joelmosescommented, Jan 26, 2021

It seems to share the same nodename and base configuration; when I loaded it into my flow set it seemed to adopt the existing flow configuration. It certainly seemed to “drop in”.

It also includes a state machine visualizer which is pretty nice - as well as a “persist state across deployments” feature which has been lacking in the prior component.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ERROR after UPGRADING TO WP 6.0 | WordPress.org
When I go to my site I get the following error across the top of the home page ... Tribe__Events__Template__Month::calculate_first_cell_date is deprecated ......
Read more >
Window: error event - Web APIs - MDN Web Docs - Mozilla
The error event is fired on a Window object when a resource failed to load or couldn't be used — for example if...
Read more >
CUDA Runtime API - error - NVIDIA Documentation Center
Error Handling. This section describes the error handling functions of the CUDA runtime application programming interface.
Read more >
Wire format handler errors (deprecated) - IBM
This topic discusses the different types of exceptions and errors that can result at run time in an SCA application that uses wire...
Read more >
Find runtime errors in AWS IoT Events detector models using ...
An expression can have one of four primitive data types: integer, string, decimal, or Boolean. By checking your expressions for correct use of ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found