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)
有人解决这个问题了吗?是怎么处理的呢
我查到的资料是证书没加载,证书在tomcat下这个东西要怎么用?
这个问题,你解决了吗, 怎么解决的? 分享一下,多谢
您好,因为请求头的Host和实际的url不符合造成。请检查
我遇到的也是这个问题, 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)