TypeError: Cannot read property 'getHolding' of null
See original GitHub issueI’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
- After deploying the project on server using one of the example flows gives the above error.
- Fixed issue with node version & npm version.
- 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:
- Created 5 years ago
- Comments:5 (3 by maintainers)
Top GitHub Comments
I’m using nvm. With that you could test with different version or you could run different nodejs instances in parallel.
Yes, v6 is minimum 😉