Missing item states in OH 3

Hi. I have the same problem. I have also spent about a week debugging it and have narrowed it down to antivirus software. It seems to be some config error with my laptop.

The things that are not working use the MIME type text/event-stream, for Server Sent Events.
Some AV software blocks these as suspicious. Sometimes it thinks it is a download and holds the data until the stream closes, and only then gives the data to the process that requested it.

Are you running any AV software? Any proxies?

Some things to try:

  • Does it work on other machines? e.g. Your phone, an emulator, etc.

  • Does it work in other browsers?

  • Does the dashboard work immediately after boot?
    Mine works until about 3 minutes after boot, usually around the same time I get a notification from Windows Security (so when Windows Security is running).

  • Can you connect with HTTPS? e.g. https://yourdevice:8443/
    I can’t. Something to do with SSL certificate errors (Firefox gives this error: PR_END_OF_FILE_ERROR and Insomnia this: Error: SSL peer certificate or SSH remote key was not OK; see the first thread I linked below).

  • Is the Stream Events tab working the Developer Console of the Main UI?
    Mine isn’t. It also uses SSE.

  • Try opening your browser and pointing it to http://yourdevice:8080/rest/events/states.
    If nothing comes up in a few seconds, most likely the same problem as me.

  • You can try installing Fiddler Everywhere, and doing this:

    • Open Fiddler
    • Open the dashboard (or just reload it, if it’s already open)

    If the dashboard works, it’s probably AV software: Fiddler creates a proxy to monitor requests, and this can fix some problems.

Check these threads:

4 Likes