Discord error on reboot of device

Hi,
So every now and then when I reboot the device that is hosting my discord bot I get met with this error.
image
Does anyone know a permenant fix for this? Usually hiiting restart flow fixes it, But I would like it to work from the start with no need for manual intervention

If you google for EIA_AGAIN you will find that it means that the code cannot find the IP address of discord.com. The reason may be that the internet connection is not fully up and running when node-red starts. If it is that then a solution is to delay the node-red startup, either for a predefined time or to wait until the network is up before starting node red. How to do that depends on how node red is started and what OS it is running on.

Or you may need to raise an issue against that node to ask them if it can automatically retry in the case of failures.

I will have to give that a go and see If I can find a way to delay it starting as the node itself autostarts

How do you start node red on boot?

I have a Ubuntu server laptop that launches Node Red on system startup (with systemctl or PM2 iirc)

You can put a delay in the systemd script, or wait for the first timesync to tell you it is connected.