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.

TypeError: Cannot read property 'getHolding' of null

See original GitHub issue

I’m submitting a Problem

  • ( x ) unexpected behavior => please visit the Wiki before

Current behavior

{“message”:“TypeError: Cannot read property ‘getHolding’ of null”,“source”:{“id”:“96ca2d57.1abac”,“type”:“modbus-server”,“name”:“”,“count”:1},“stack”:“TypeError: Cannot read property ‘getHolding’ of null\n at null.<anonymous> (/home/wwwroot/.node-red/node_modules/node-red-contrib-modbus/modbus/maps/modbus-server.js:131:40)\n at emitOne (events.js:77:13)\n at null.emit (events.js:169:7)\n at null.Node.receive (/usr/local/lib/node_modules/node-red/red/runtime/nodes/Node.js:215:14)\n at InjectNode.Node.send (/usr/local/lib/node_modules/node-red/red/runtime/nodes/Node.js:137:22)\n at InjectNode.<anonymous> (/usr/local/lib/node_modules/node-red/nodes/core/core/20-inject.js:77:22)\n at emitOne (events.js:77:13)\n at InjectNode.emit (events.js:169:7)\n at InjectNode.Node.receive (/usr/local/lib/node_modules/node-red/red/runtime/nodes/Node.js:215:14)\n at /usr/local/lib/node_modules/node-red/nodes/core/core/20-inject.js:105:22\n at Layer.handle [as handle_request] (/usr/local/lib/node_modules/node-red/node_modules/express/lib/router/layer.js:95:5)\n at next (/usr/local/lib/node_modules/node-red/node_modules/express/li…”}

Minimal reproduction of the problem with instructions

  1. After deploying the project on server using one of the example flows gives the above error.
  2. Fixed issue with node version & npm version.
  3. Node-Red manage palette has disappeared.

Your Environment

Please tell us about your environment:

  • Device :

    • ( ) macOS: v
    • ( x ) Linux: v 16.04
    • ( ) Windows: v
    • ( ) Raspbian: v
    • ( ) Other:
      • Name:
      • Version:
  • node-red-contrib-modbus version: 3.6.1

  • Node: (min. 6.x) node --version = v8.11.4

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
biancodecommented, Aug 23, 2018

I’m using nvm. With that you could test with different version or you could run different nodejs instances in parallel.

0reactions
biancodecommented, Aug 23, 2018

Yes, v6 is minimum 😉

Read more comments on GitHub >

github_iconTop Results From Across the Web

Uncaught TypeError: Cannot read property of null - iDiallo
This will result in Uncaught TypeError: Cannot read property 'value' of null . The reason will be that the element with id input...
Read more >
How to deal with TypeError: cannot read properties of null
This common error occurs when one tries to read a property or call a method on a null object. For Safari users, this...
Read more >
Uncaught TypeError: Cannot read property 'value' of null at ...
First Time I am Working with APIs and this error came this is index.html enter image description here. and this is script.js
Read more >
How to fix "TypeError: Cannot read properties of ... - YouTube
JS Casts 12 - How to fix " TypeError : Cannot read properties of null (reading addEventListener)" in JavaScript.
Read more >
Cannot read property 'syntaxProfiles' of null #247 - GitHub
Message: Request textDocument/completion failed with message: Cannot read property 'syntaxProfiles' of null Code: -32603.
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