# Ethernet-ip crash node-red

**URL:** <https://discourse.nodered.org/t/ethernet-ip-crash-node-red/48684>\
**Category:** Industrial\
**Created:** [21 July 2021 03:32 UTC](https://discourse.nodered.org/t/ethernet-ip-crash-node-red/48684 "2021-07-21T03:32:06Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![abufitna](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/abufitna/32/45256_2.png) [@abufitna](https://discourse.nodered.org/u/abufitna)\
**Post date:** [21 July 2021 03:32 UTC](https://discourse.nodered.org/t/ethernet-ip-crash-node-red/48684/1 "2021-07-21T03:32:06Z")

</div>

Hi Folks,

Have the cip-ethernet-ip driver setup with a ControlLogix CPU to write some data to a couple of tags. For the most part it was very easy to setup. After the flow runs for some time it crashes the node-red instance in docker.....wondering if anyone has seen this before?

Thanks.

`21 Jul 03:14:39 - [error] [eth-ip endpoint:PLC_80] Error communicating with the PLC: Error: <SCAN_GROUP>`

`Unrecognized Type Passed Read from Controller: 0`

``

`21 Jul 03:14:39 - [red] Uncaught Exception:`

`21 Jul 03:14:39 - RangeError [ERR_OUT_OF_RANGE]: The value of "offset" is out of range. It must be >= 0 and <= 3. Received 4`

`at boundsError (internal/buffer.js:49:9)`

`at Uint8Array.readUInt32LE (internal/buffer.js:181:5)`

`at Object.header.parse.buf [as parse] (/data/node_modules/ethernet-ip/src/enip/encapsulation/index.js:230:22)`

`at Controller._handleDataEvent (/data/node_modules/ethernet-ip/src/enip/index.js:240:41)`

`at Controller.emit (events.js:198:13)`

`at addChunk (_stream_readable.js:288:12)`

`at readableAddChunk (_stream_readable.js:269:11)`

`at Controller.Readable.push (_stream_readable.js:224:10)`

`at TCP.onStreamRead [as onread] (internal/stream_base_commons.js:94:17)`

`npm ERR! code ELIFECYCLE`

`npm ERR! errno 1`

``

`npm ERR! node-red-docker@1.3.5 start: `node $NODE\_OPTIONS node\_modules/node-red/red.js $FLOWS "--userDir" "/data"``

`npm ERR! Exit status 1`

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [21 July 2021 07:05 UTC](https://discourse.nodered.org/t/ethernet-ip-crash-node-red/48684/2 "2021-07-21T07:05:03Z")

</div>

That sounds like the sort of error that should be raised as an issue with the author of that node.

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [21 July 2021 21:29 UTC](https://discourse.nodered.org/t/ethernet-ip-crash-node-red/48684/3 "2021-07-21T21:29:14Z")

</div>

> [@abufitna](#):
>
> 21 Jul 03:14:39 - RangeError [ERR\_OUT\_OF\_RANGE]: The value of "offset" is out of range. It must be \>= 0 and \<= 3. Received 4

Also sounds like an invalid assumption by the author. Have you recently updated the node or a dependency? Or some other software. It is the kind of error that creeps in with a new version of some dependency.

---

<div class="post-metadata">

**Author:** ![tree-frog](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/tree-frog/32/89303_2.png) [@tree-frog](https://discourse.nodered.org/u/tree-frog)\
**Post date:** [7 August 2021 18:25 UTC](https://discourse.nodered.org/t/ethernet-ip-crash-node-red/48684/4 "2021-08-07T18:25:07Z")

</div>

Is that a datatype mismatch?

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [8 August 2021 13:25 UTC](https://discourse.nodered.org/t/ethernet-ip-crash-node-red/48684/5 "2021-08-08T13:25:35Z")

</div>

No, it is what it says. The number 4 was sent which is larger than the max allowed (3).

---

<div class="post-metadata">

**Author:** ![machadotiago](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/machadotiago/32/23776_2.png) [@machadotiago](https://discourse.nodered.org/u/machadotiago)\
**Post date:** [11 August 2021 20:09 UTC](https://discourse.nodered.org/t/ethernet-ip-crash-node-red/48684/6 "2021-08-11T20:09:30Z")

</div>

Did you open an issue in the repository of the node?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [10 October 2021 20:09 UTC](https://discourse.nodered.org/t/ethernet-ip-crash-node-red/48684/7 "2021-10-10T20:09:40Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
