I’m re-writing my old OH1 rest interface for OH2. The first problem I run into is that I can’t get a list of items.
This should return the list:
http://ohip:port/rest/items
But I get:
{
"error": {
"message": "d != java.lang.String",
"http-code": 500,
"exception": {
"class": "java.util.IllegalFormatConversionException",
"message": "d != java.lang.String",
"localized-message": "d != java.lang.String"
}
}
}
Which I assume means that one of my items (or values, or settings or something) does not convert to a java string. I get no errors in the log though, so I have no idea where to start looking. I can GET and POST/PUT values for individual items, and all interfaces work normally, so I don’t know what is causing this.
Any idea where to start? how can I log REST exceptions? Am I right thinking that an item name is causing this - maybe a special unicode character like “degrees” symbol or something?
Thanks,