KB Article #180421
Invalid UTF-8 middle byte 0xe3
Problem
This error is thrown when processing incoming requests to process/validate JSON:
java exception:
com.vordel.coreapireg.runtime.broker.InvokableMethodParamException: Unable to check if parameter 'request' is required. Reason: Invalid UTF-8 middle byte 0xe3
at [Source: (com.vordel.mime.Body$StopperInputStream); line: 12, column: 42]
at com.vordel.coreapireg.runtime.broker.parameters.BodyParamValidator.checkIsRequired(BodyParamValidator.java:53)
Resolution
The request must qualify the encoding charset by specifying it:
Content-Type: application/json;charset=UTF-8
1. request containing this header: Content-Type:application/json;charset=UTF-8
./app/762main/a/apigateway/Linux.x86_64/bin/sr -h server.com
-s 28080 -u /01070164-1 -f tmp/request.txt -a Content-Type:application/json;charset=UTF-8
2. Should you use SOAPUI when requesting, make sure that SOAPUI is instructed to run requests in UTF-8 charset (see the its settings)