OH2 REST interface can't get list of items

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:


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?


Well, through a lot of trial and error, found an item with a mapping that the rest interface didn’t like. One that I wasn’t even using (in the sitemap), removed it, and now it works.

Could use better logging here…