收藏
回答

退款的时候报了个异常

 2019-02-14 09:41:34,091 [http-apr-80-exec-5] ERROR c.c.w.k.c.WandaKouBeiAjaxDishController [WandaKouBeiAjaxDishController.java:174] api.mch.weixin.qq.com:443 failed to respond
 org.apache.http.NoHttpResponseException: api.mch.weixin.qq.com:443 failed to respond
    at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:141)
    at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:56)
    at org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:259)
    at org.apache.http.impl.DefaultBHttpClientConnection.receiveResponseHeader(DefaultBHttpClientConnection.java:163)

最后一次编辑于  02-14  (未经腾讯允许,不得转载)
邀请回答
复制链接收藏投诉关注问题回答

2 个回答

  • 微信支付技术助手
    微信支付技术助手
    02-14

    您好,因为请求头的Host和实际的url不符合造成。请检查

    02-14
    赞同
    回复 1
    • 山大康
      山大康
      03-28

      我遇到的也是这个问题, url不就是https://api.mch.weixin.qq.com/secapi/pay/refund 这个吗?

      请求头的host是指header中的哪个字段?


      org.apache.http.NoHttpResponseException: api.mch.weixin.qq.com:443 failed to respond

      at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:141)

      at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:56)

      at org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:259)

      at org.apache.http.impl.DefaultBHttpClientConnection.receiveResponseHeader(DefaultBHttpClientConnection.java:163)

      at org.apache.http.impl.conn.CPoolProxy.receiveResponseHeader(CPoolProxy.java:165)

      at org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpRequestExecutor.java:273)

      at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:125)

      at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:272)

      at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:185)

      at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89)

      at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:111)

      at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185)

      at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83)

      at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:108)

      at com.cxp.server.common.util.HttpUtil.sendXmlPost(HttpUtil.java:120)

      at com.cxp.server.service.wechat.WeChatPayService.execute(WeChatPayService.java:112)

      at com.cxp.server.service.wechat.WeChatPayService.refund(WeChatPayService.java:75)

      at com.cxp.server.control.TestControl.main(TestControl.java:58)


      03-28
      回复
  • tts2
    tts2
    02-14

    我查到的资料是证书没加载,证书在tomcat下这个东西要怎么用?

    02-14
    赞同
    回复 1
    • 山大康
      山大康
      03-28

      这个问题,你解决了吗, 怎么解决的? 分享一下,多谢

      03-28
      回复