dafeng19 opened a new issue #2499:
URL: https://github.com/apache/servicecomb-java-chassis/issues/2499


   
   微服务之间调用,A微服务用以下几种方式向B微服务发起请求,均报错
    restTemplate.postForEntity(fullUrl, requestHttp, JSONObject.class);
    restTemplate.postForEntity(fullUrl, requestHttp, String.class);
    restTemplate.postForEntity(fullUrl, requestHttp, Object.class);
   
   
   Caused by: com.fasterxml.jackson.core.JsonParseException: Illegal character 
((CTRL-CHAR, code 31)): only regular white space (\r, \n, \t) is allowed 
between tokens
    at [Source: 
(org.apache.servicecomb.foundation.vertx.stream.BufferInputStream); line: 1, 
column: 2]
           at 
com.fasterxml.jackson.core.JsonParser._constructError(JsonParser.java:2337)
           at 
com.fasterxml.jackson.core.base.ParserMinimalBase._reportError(ParserMinimalBase.java:710)
           at 
com.fasterxml.jackson.core.base.ParserMinimalBase._throwInvalidSpace(ParserMinimalBase.java:688)
           at 
com.fasterxml.jackson.core.json.UTF8StreamJsonParser._skipWSOrEnd(UTF8StreamJsonParser.java:3012)
           at 
com.fasterxml.jackson.core.json.UTF8StreamJsonParser.nextToken(UTF8StreamJsonParser.java:724)
           at 
com.fasterxml.jackson.databind.ObjectMapper._initForReading(ObjectMapper.java:4684)
           at 
com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:4586)
           at 
com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3601)
           at 
org.apache.servicecomb.common.rest.codec.produce.ProduceJsonProcessor.doDecodeResponse(ProduceJsonProcessor.java:64)
           at 
org.apache.servicecomb.common.rest.codec.produce.ProduceProcessor.decodeResponse(ProduceProcessor.java:76)
           at 
org.apache.servicecomb.transport.rest.client.http.DefaultHttpClientFilter.extractResponse(DefaultHttpClientFilter.java:104)
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to