Closed boehla closed 4 months ago
From the information provided, it is really difficult to debug that and I cannot reproduce this on my installation.
Can you please check the network tab and show me the response of any request to /rest/items
?
I could imagine (just guessing) that this is caused by the Firefox caching issue, which I have already created a fix. Today openHAB 4.1.1 is planned to be released, which will also include my fix for the Firefox caching issue, so probably recheck after upgrading to 4.1.1.
Many thanks for the reply, helps me already a lot. Looks like somehow the json response of /rest/items is broken. At the beginning its fine, but it looks like the ending is overwritten with another (error) json:
...{"link":"http://10.0.1.131:8080/rest/items/cellar_battery_level","state":"99","stateDescription":{"step":1.0,"pattern":"%.1f %%","readOnly":true,"options":[]},"unitSymbol":"one","editable":false,"type":"Number:Dimensionless","name":"cellar_battery_level","label":"Cellar Battery","category":"humidity","tags":[],"groupNames":[]},{"link":"http://10.0.1.131:8080/rest/items/seplos1_lastupdate","state":"2024-01-07T13:51:23.747715763+0100","stateDescription":{"pattern":"%1$tm/%1$td %1$tH:%1$tM","readOnly":false,"options":[]},"editable":false,"type":"DateTime","name""{\"error\":{\"http-code\":500,\"exception\":{\"class\":\"java.lang.ClassCastException\"}}}"
Everytime I do the request again it looks a bit different:
...{"link":"http://10.0.1.131:8080/rest/items/cellar_battery_level","state":"99","stateDescription":{"step":1.0,"pattern":"%.1f %%","readOnly":true,"options":[]},"unitSymbol":"one","editable":false,"type":"Number:Dimensionless","name":"cellar_battery_level","label":"Cellar Battery","category":"humidity","tags":[],"groupNames":[]},{"link":"http://10.0.1.131:8080/rest/items/seplos1_lastupdate","state":"2024-01-07T13:55:53.841912053+0100","stateDescription":{"pattern":"%1$tm/%1$td %1$tH:%1$tM","readOnly":false,"options"{\"error\":{\"http-code\":500,\"exception\":{\"class\":\"java.lang.ClassCastException\"}}}"
In the logviewer I see this:
2024-01-07 13:55:54.657 [ERROR] [rg.apache.cxf.jaxrs.utils.JAXRSUtils] - Problem with writing the data, class org.openhab.core.io.rest.Stream2JSONInputStream, ContentType: application/json
2024-01-07 13:55:54.658 [ERROR] [internal.JSONResponseExceptionMapper] - Unexpected exception occurred while processing REST request.
java.lang.ClassCastException: null
There should be no caching issue, tried it with "disable cache", firefox and edge.
Wtf, I could resolve the problem... I only had to deactivate one thing: Shelly RGBW2 (LED Controller in Color Mode)
The problem
Recently updated from Openhab 3.3.0 to 4.1.0. Worked pretty straightforward. But now I wanted to edit a Label on a Page, but the item selector popup is not working anymore:
When I click nothing happens. (also no additional error added in console)
Edit the page in textmode is working.
Is it because of the weird error in the console? "Uncaught (in promise) parseerror" What does this error means??
Same thing for "Items to Analyze" popup.
In the log viewer I don't see any (related) error.
Expected behavior
Item selector popup should open.
Steps to reproduce
I could reproduce the problem with an empty page.
Your environment