[SOLVED] VS Code openhab connection

Hello I got always the error on Startup ov VS Code

[Error - 11:25:45] Connection to server is erroring. Shutting down server.
[Error - 11:25:46] Connection to server is erroring. Shutting down server.

Here is my user/workspace setting:

{
    "openhab.host": "smarthome.fritz.box",
    "window.zoomLevel": 0
}

my openhab is reachable through

http://smarthome.fritz.box:8080

any ideas??

I would guess that the language server is erroring.

could you deactivate the openhab.lspEnabled setting and test if it stoll occurs?

No error message now occurs

But if I type “rule” and press “ctrl + space” this message popsup

Error while connecting to openHAB REST API. connect EHOSTUNREACH 192.168.178.75:8080

But the IP must be
192.168.178.57:8080

How about using the IP for the host then? That would avoid potential issues with host name resolving.

1 Like

I am completeley new to OpenHAB and am trying to work through some tutorials. Because I am so new, I don’t know where or how to access the “user/workspace settings”.

As I go through tutorials, things don’t seam to be updating as I expect. I don’t know if the errors i’m getting when I amend files in VS are just my mistakes or are because of the “Shutting down server” error. Sometimes I spot errors but other times I can’t see what I have done.

I would be grateful if someone could explain to a complete incompitant how I change the user/workspace settings so that I can rule this out.

I’m getting more grey hairs by the day.