服务器接收到OSS回调时,偶尔会报JSON格式错误。试着通过request打印接收到的参数,无法打印参数,似乎request中没有传递过来的参数,日志如下:
2018-12-09 16:01:11.480 ERROR 22662 --- [http-nio-8081-exec-3] esolver$$EnhancerBySpringCGLIB$$a9d91397 : ------------resolveException start------------ 2018-12-09 16:01:11.480 ERROR 22662 --- [http-nio-8081-exec-3] esolver$$EnhancerBySpringCGLIB$$a9d91397 : url:http://*.*.*.*:*/oss/callback 2018-12-09 16:01:11.480 ERROR 22662 --- [http-nio-8081-exec-3] esolver$$EnhancerBySpringCGLIB$$a9d91397 : ------------resolveException end------------ 2018-12-09 16:01:11.481 WARN 22662 --- [http-nio-8081-exec-3] esolver$$EnhancerBySpringCGLIB$$a9d91397 : Failed to read HTTP message: org.springframework.http.converter.HttpMessageNotReadableException: JSON parse error: Unexpected character (',' (code 44)): expected a value; nested exception is com.fasterxml.jackson.core.JsonParseException: Unexpected character (',' (code 44)): expected a value at [Source: java.io.PushbackInputStream@657ea58d; line: 1, column: 357]