caseyjhol/node-red-contrib-tplink

Unexpected Node Error in node-red

Steve-Mcl opened this issue · 1 comments

Describe the bug
Your code uses node.error in the promise .catch (see here) which is causing Node instance to be globalThis and therefore the prototype doesnt contain expected objects and logging capabilities etc.

See issue thread for full details node-red/node-red#3389

To Reproduce
Steps to reproduce the behavior:
See issue thread for full details node-red/node-red#3389 (comment) (this comment includes a potential fix)

Expected behavior
Node instance to be a node-red node instance (not globalThis)

Screenshots
See issue thread for full details node-red/node-red#3389

Desktop (please complete the following information):

  • OS: All
  • Browser: N/A (server side issue)
  • Version: 1.0.0

Resolved in v1.0.1