Error: Homey Offline when trying to run my own app

Hi,

Beginner developer here…I have been working on my own app, but after updating Visual Studio Code I can’t seem to run my app anymore…

I run the command homey app run as well as homey app run --remote and I keep getting

Error: Homey Offline
    at /usr/local/lib/node_modules/homey/node_modules/homey-api/lib/HomeyAPI/HomeyAPIV3.js:377:29
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

My feeling is that I didn’t change anything since last time. But I guess I updated the firmware to 12.0.0 quite recently…

Running on Homey Pro (2023).

Any ideas what might be wrong? I can access the Home perfectly through both web and mobile app. And an instance of my own app is still running on it…

If Homey is connected by wifi: Maybe your app uses to much memory, check it at developer page.
With my Pro19 I can reproduce the “Homey is offline” bug, by letting Homeyscript run too many scripts at once.
The memory use of Hscript gets too high and seems to kill the wifi implementation in some way.

Uninstall it first with the phone/web app, before trying to run it again.

And you can try homey select to see if it presents your Homey, maybe it helps when you select it again.

I was getting the same error.
I was able to open the file of that homey-api, and found that it is trying to do a local ping to reach homey. Which lead me to the solution: my computer switched to the wrong wifi-network. It seems to expect homey to be running in the same network, and not to transfer the app via internet.

I had the same error, just restarted Homey and everything returned back to normal…