-
-
Notifications
You must be signed in to change notification settings - Fork 243
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WARN ] [e.internal.SseItemStatesEventBuilder] - Attempting to send a state update of an item which doesn’t exist: undefined #2956
Comments
Unfortunately, I don't think that information is available to the server. All the server knows is something froim MainUI requested the state of an Item named The code in question is at https://github.com/openhab/openhab-core/blob/1a91ef2b4427efda49c9f46d3658a751869ceced/bundles/org.openhab.core.io.rest.sse/src/main/java/org/openhab/core/io/rest/sse/internal/SseItemStatesEventBuilder.java#L84 All that has access to is the list of names of the Items MainUI has subscribed for events from. So to change that log and to make more information available there to add to the error log changes will need to be made to openhab-core first. |
so, @rkoshak, do you think the root cause is an issue in the Main UI (IMHO it is)? |
The root cause is it's really hard to tell where this error is coming from as an end user. But if there can be a way to make the error more informative, it's going to involve changes to both MainUI and core to address it. I'm not certain it can be addressed but I'm no expert. MainUI could make tracking it down easier on its own perhaps if it somehow logged to the browser console when an Item comes up |
Fixes openhab#2956. This however imposes the limitation that one cannot name an Item `undefined`. Signed-off-by: Florian Hotze <[email protected]>
This issue can be fixed by making the UI not request the Item state if the Item name comes up as |
that limitation for sure is minor, but will this help with tracking down UI definition errors, i.e. which widget uses a wrong item name? |
No, this won’t help with that, but there is no reliable way to track down the faulting expression, so this is the best solution IMHO. The user will see a |
This is a fairly frequently occuring warning, and often the origin/cause is not apparent
Trouble then is, it's hard to find out what is the item and which widget is it used in.
Please make that information part of the error message to help with debugging.
The text was updated successfully, but these errors were encountered: