@dtheodor79 please try to manually add the header. It’s for sure something with Content-Type
header. Here is the sever code:
public BlynkPostRequestDecoder(HttpRequest request) {
String contentType = request.headers().get(HttpHeaderNames.CONTENT_TYPE);
if (contentType == null) {
throw new RuntimeException("No content type provided.");
}
//split headers like "application/json;encoding=utf8"
if (contentType.contains(";")) {
contentType = contentType.split(";")[0];
}
switch (contentType) {
case APPLICATION_FORM_URLENCODED :
this.decoder = new HttpPostRequestDecoder(request);
break;
case APPLICATION_JSON :
if (request instanceof HttpContent) {
this.bodyData = ((HttpContent) request).content();
} else {
throw new RuntimeException("Unexpected http request");
}
break;
default :
throw new RuntimeException("Unknown content type");
}
}
Postman is not always works as expected. Happens all the time. So it would be better to explicitly add Content-Type
header.