REST update triggers error message in build #951+

Since updating to anything at/after build #951, we always receive the following error message in the openhab.log when doing a http REST state update :

2017-06-19 09:20:06.831 [ERROR] [lipse.smarthome.io.rest.JSONResponse] - Error streaming JSON through PipedInpuStream/PipedOutputStream:
java.io.IOException: Incomplete document
at com.google.gson.stream.JsonWriter.close(JsonWriter.java:527)
at org.eclipse.smarthome.io.rest.JSONResponse.lambda$0(JSONResponse.java:167)
at java.lang.Thread.run(Unknown Source)[:1.8.0_91]

The http response code is 202 (not explained in api doc !) - same as before …

Any idea what the cause is ?
Do we have to change something in our app ? (same error when using PaperUI API …)
Or is it just programming error ?!?

Thanks

Benno

Hi Benno, from the first look this seems to be a programming error. could you please describe in more detail what you are doing? What exactly is the situation the error occurs?

thanks,
Henning

Hi Henning,
we are just doing an update via HTTP …
Can also be triggered using the PaperUI openHAB REST api page -> Update the state of an item
Insert an existing item name and an appropriate state into the body field -> try out
->> error message

Something must have changed somewhere in the REST API handling …

Regards

Benno

Thanks for the quick reply, its a bug which will be fixed any minute :slight_smile:

cheers,
henning

Thanks.
We’ll try again tomorrow, when the new snapshots are built …

Regards

Benno

You can track the state of the fix here: https://github.com/eclipse/smarthome/pull/3697

When is this build available.

/Mike

FYI: The latest distro #956 should have the fix included - if you still see errors, please scream loudly!

Errors is gone :slight_smile:.

/Mike