"Could not reload items for Items Explorer" / "TypeError: e.map is not a function"

Hello,

I “suddenly” received rest API errors and I could not use the openhab extension within vs studio code anymore.

The errors below appear when I made an error within an .items file that did not trigger any warning.
The solution is to rename every .items file o e.g. .items_x to diable them. Then, for each .items_x file, rename them to .items and reload the items within the visual studio code extension. As soon as it throws the rest APi error agein, you know at least in which .items file you made the error :slight_smile:

Could not reload items for Items Explorer

Error:
    Error while connecting to openHAB REST API.

Message:
    TypeError: e.map is not a function

Could not reload items for HoverProvider

Error:
    Error while connecting to openHAB REST API.

Message:
    TypeError: e.data.forEach is not a function