HttpClientErrorException$BadRequest: 400 Illegal character CNTL=0x14

http post请求异常:

cause=org.springframework.web.client.HttpClientErrorException$BadRequest: 400 Illegal character CNTL=0x14
        at org.springframework.web.client.HttpClientErrorException.create(HttpClientErrorException.java:79)
        at org.springframework.web.client.DefaultResponseErrorHandler.handleError(DefaultResponseErrorHandler.java:122)
        at org.springframework.web.client.DefaultResponseErrorHandler.handleError(DefaultResponseErrorHandler.java:102)
        at org.springframework.web.client.ResponseErrorHandler.handleError(ResponseErrorHandler.java:63)
        at org.springframework.web.client.RestTemplate.handleResponse(RestTemplate.java:778)
        at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:736)
        at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:670)
        at org.springframework.web.client.RestTemplate.postForObject(RestTemplate.java:414)
        at cn.sto.order.push.heitu.service.TmsAreaConfigService.requestAreaList(TmsAreaConfigService.java:101)
        at cn.sto.order.push.heitu.service.TmsAreaConfigService.getAreaList(TmsAreaConfigService.java:75)
        at cn.sto.order.push.heitu.service.HeiTuPushService.isPush(HeiTuPushService.java:139)
        at cn.sto.order.push.heitu.service.HeiTuPushService.push(HeiTuPushService.java:68)
        at cn.sto.order.push.heitu.mq.TradeMessageListener.consume(TradeMessageListener.java:45)
        at com.aliyun.openservices.ons.api.impl.rocketmq.ConsumerImpl$MessageListenerImpl.consumeMessage(ConsumerImpl.java:101)
        at com.aliyun.openservices.shade.com.alibaba.rocketmq.client.impl.consumer.ConsumeMessageConcurrentlyService$ConsumeRequest.run(ConsumeMessageConcurrentlyService.java:420)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at com.alibaba.ttl.TtlRunnable.run(TtlRunnable.java:51)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)

 

本地测试没有问题 线上环境就会报异常,找了很多文档,还是没找到解决办法 所以贴出错误信息,等找到写解决办法吧!

你可能感兴趣的:(java)