# Restart loop after a mistyped IP address

**URL:** <https://discourse.nodered.org/t/restart-loop-after-a-mistyped-ip-address/86702>\
**Category:** General\
**Tags:** possible-bug\
**Created:** [23 March 2024 22:48 UTC](https://discourse.nodered.org/t/restart-loop-after-a-mistyped-ip-address/86702 "2024-03-23T22:48:55Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![nygma2004](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/nygma2004/32/1308_2.png) [@nygma2004](https://discourse.nodered.org/u/nygma2004)\
**Post date:** [23 March 2024 22:48 UTC](https://discourse.nodered.org/t/restart-loop-after-a-mistyped-ip-address/86702/1 "2024-03-23T22:48:55Z")

</div>

I am not sure if this is known issue or not. I am integrating Gree AC units in NR and in the device configuration I accidently mistyped the ip to `192.1680.249`. Missed the dot after 168.  
This causes a reboot loop in Node-Red:

```auto
Welcome to Node-RED
===================
23 Mar 21:53:54 - [info] Node-RED version: v3.1.7
23 Mar 21:53:54 - [info] Node.js version: v20.5.1
23 Mar 21:53:54 - [info] Linux 4.4.194 arm64 LE
23 Mar 21:53:56 - [info] Loading palette nodes
23 Mar 21:54:00 - [info] Settings file : /home/admin/.node-red/settings.js
23 Mar 21:54:00 - [info] Context store : 'default' [module=memory]
23 Mar 21:54:00 - [info] User directory : /home/admin/.node-red
23 Mar 21:54:00 - [warn] Projects disabled : editorTheme.projects.enabled=false
23 Mar 21:54:00 - [info] Flows file : /home/admin/.node-red/flows.json
23 Mar 21:54:00 - [warn] Encrypted credentials not found
23 Mar 21:54:00 - [info] Server now running at http://127.0.0.1:1880/
23 Mar 21:54:00 - [info] Starting flows
23 Mar 21:54:00 - [info] Started flows
23 Mar 21:54:00 - [red] Uncaught Exception:
23 Mar 21:54:00 - [error] Error: getaddrinfo ENOTFOUND 192.1680.249
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:107:26)
nodered.service: Main process exited, code=exited, status=1/FAILURE
nodered.service: Failed with result 'exit-code'.

```

Fortunately it was a new installation and I was able to edit the IP addreass in flow.json.

I found a discussion from a few years ago on this and something like Safe mode, but I am not sure how this would apply to this case. Is it possible to start Node-Red without starting the flows to fix such issues?

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [23 March 2024 23:45 UTC](https://discourse.nodered.org/t/restart-loop-after-a-mistyped-ip-address/86702/2 "2024-03-23T23:45:11Z")

</div>

> [@nygma2004](#):
>
> I accidently mistyped the ip to `192.1680.249`

Where did you mistype ? What were your exact steps? I am assuming this was a contrib node where you entered an invalid address and deployed?

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [24 March 2024 00:49 UTC](https://discourse.nodered.org/t/restart-loop-after-a-mistyped-ip-address/86702/3 "2024-03-24T00:49:44Z")

</div>

> [@nygma2004](#):
>
> Is it possible to start Node-Red without starting the flows to fix such issues?

Yes, use `node-red --safe`

---

<div class="post-metadata">

**Author:** ![nygma2004](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/nygma2004/32/1308_2.png) [@nygma2004](https://discourse.nodered.org/u/nygma2004)\
**Post date:** [24 March 2024 07:43 UTC](https://discourse.nodered.org/t/restart-loop-after-a-mistyped-ip-address/86702/4 "2024-03-24T07:43:02Z")

</div>

> [@Steve-Mcl](#):
>
> re did you mistype ? What were your exact steps? I am

Yes, it was the node-red-contrib-gree-hvac node, and it was in the configuration.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [24 March 2024 07:48 UTC](https://discourse.nodered.org/t/restart-loop-after-a-mistyped-ip-address/86702/5 "2024-03-24T07:48:32Z")

</div>

This is a bug in the node. Normally I'd ask you to report it but it seems others have encountered this bug and reported it: [Wrong ip value causes node red to crash · Issue #8 · inwaar/node-red-contrib-gree-hvac · GitHub](https://github.com/inwaar/node-red-contrib-gree-hvac/issues/8)

---

<div class="post-metadata">

**Author:** ![nygma2004](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/nygma2004/32/1308_2.png) [@nygma2004](https://discourse.nodered.org/u/nygma2004)\
**Post date:** [24 March 2024 09:19 UTC](https://discourse.nodered.org/t/restart-loop-after-a-mistyped-ip-address/86702/6 "2024-03-24T09:19:32Z")

</div>

ok thank. I thought if it would be a node error the log would be prefixed with the node name, but I guess if this is uncaught, it just bubbles up to the top level.

---

<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:** [7 April 2024 09:20 UTC](https://discourse.nodered.org/t/restart-loop-after-a-mistyped-ip-address/86702/7 "2024-04-07T09:20:08Z")

</div>

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