# Error on initializeModbusTCPConnection at Startup

**URL:** <https://discourse.nodered.org/t/error-on-initializemodbustcpconnection-at-startup/19418>\
**Category:** General\
**Created:** [21 December 2019 10:33 UTC](https://discourse.nodered.org/t/error-on-initializemodbustcpconnection-at-startup/19418 "2019-12-21T10:33:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![BoLaursen](https://avatars.discourse-cdn.com/v4/letter/b/8797f3/32.png) [@BoLaursen](https://discourse.nodered.org/u/BoLaursen)\
**Post date:** [21 December 2019 10:33 UTC](https://discourse.nodered.org/t/error-on-initializemodbustcpconnection-at-startup/19418/1 "2019-12-21T10:33:35Z")

</div>

Hey Forum.

When i start up node red i get this message in the CMD. and i cant get acces to the node-red editor.

21 Dec 11:16:18 - [info] Starting flows  
21 Dec 11:16:18 - [error] [modbustcp-read:8bd8adae.9507] TypeError: Cannot read property 'initializeModbusTCPConnection' of null  
21 Dec 11:16:18 - [info] Started flows  
21 Dec 11:16:18 - [red] Uncaught Exception:  
21 Dec 11:16:18 - Error: listen EADDRNOTAVAIL: address not available 192.168.1.144:10502  
at Server.setupListenHandle [as \_listen2] (net.js:1284:19)  
at listenInCluster (net.js:1349:12)  
at doListen (net.js:1488:7)  
at processTicksAndRejections (internal/process/task\_queues.js:81:21)

It seems to me that i get the port number wrong, and now i cant get back i to the editor and correct it.

How can i reset or delete this error?

Thanks i advance

---

<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 December 2019 10:39 UTC](https://discourse.nodered.org/t/error-on-initializemodbustcpconnection-at-startup/19418/2 "2019-12-21T10:39:30Z")

</div>

if you start Node-RED from the command line using the `--safe` flag option it will start the editor but not run the flow - so you should then be able to edit and fix the flow before re-deploying.

---

<div class="post-metadata">

**Author:** ![BoLaursen](https://avatars.discourse-cdn.com/v4/letter/b/8797f3/32.png) [@BoLaursen](https://discourse.nodered.org/u/BoLaursen)\
**Post date:** [21 December 2019 10:47 UTC](https://discourse.nodered.org/t/error-on-initializemodbustcpconnection-at-startup/19418/3 "2019-12-21T10:47:52Z")

</div>

Thanks dceejay, and for the quick responce. It worked 👍.

Have a nice day

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [21 December 2019 14:49 UTC](https://discourse.nodered.org/t/error-on-initializemodbustcpconnection-at-startup/19418/4 "2019-12-21T14:49:55Z")

</div>

Please submit an issue on the node's github page. If it causes node-red to crash then that is a bug in the node, it should catch errors and deal with them appropriately.
