[答疑求助] SDK客户端接口调用抛出statusCode 400, reasonPhrase Bad Request, response content-type null is not supported

transport-vert.x-eventloop-thread-30] [org.apache.servicecomb.loadbalance.LoadbalanceHandler$4.lambda$null$0(LoadbalanceHandler.java:278)] service CONSUMER rest CSBProdOfferingService.OfferingQueryProduct.queryBatchProduct, call error, msg is InvocationException: code=490;msg=CommonExceptionData [message=method POST, path /product/product-offering/v2/products/detail/, statusCode 400, reasonPhrase Bad Request, response content-type null is not supported], server is rest://177.66.15.110:8443?sslEnabled=true&urlPrefix=/


原因:这个错误是因为provider返回400错误码。provider在接口定义的时候,API没声明400错误码,客户端无法解析,打印了异常。 可以通过查询provider日志进一步查询详细原因。






点评

顶你: 5.0
顶你: 5
  发表于 2018-7-6 15:41