收藏
回答

内容安全接口:Remote host terminated the handshake ?

调用时间:2021-07-21 16:36

调用接口:内容安全/msgSecCheck 服务端接口;

异常信息:

复现频率:偶发;

开发/运行环境:Java、HttpClient - TLSv1.2

请官方明确,当时上述时刻是否存在网络抖动等问题。因为后续想要再次复现,循环100+次均是正常的。

回答关注问题邀请回答
收藏

3 个回答

  • 社区运营专员-wetingtu
    社区运营专员-wetingtu
    2021-07-22

    你好,后续问题若仍复现,麻烦再反馈具体的时间,报错信息

    2021-07-22
    有用
    回复 2
    • 月海
      月海
      2021-12-16
      你好,请教一下,如果使用代理IP请求访问的会,会出现导致这种情况吗?
      2021-12-16
      回复
    • 就是这个峰
      就是这个峰
      07-11
      2024年7月9日16:53:49秒左右,请求https://api.weixin.qq.com/cgi-bin/qrcode/create?access_token=网站获取临时二维码,偶发性出现这个bug,日志如下:
      16:53:49.267 [http-nio-80-exec-6] ERROR c.r.f.w.e.GlobalExceptionHandler - [handleRuntimeException,67] - 请求地址'/weixin/getCode',发生未知异常.
      cn.hutool.core.io.IORuntimeException: SSLHandshakeException: Remote host terminated the handshake
      at cn.hutool.http.HttpRequest.send(HttpRequest.java:1228)
      at cn.hutool.http.HttpRequest.doExecute(HttpRequest.java:1106)
      at cn.hutool.http.HttpRequest.execute(HttpRequest.java:997)
      at cn.hutool.http.HttpRequest.execute(HttpRequest.java:973)
      at cn.hutool.http.HttpUtil.post(HttpUtil.java:229)
      at cn.hutool.http.HttpUtil.post(HttpUtil.java:210)
      at com.ruoyi.framework.shiro.weixin.util.WeixinApiUtil.getQrCode(WeixinApiUtil.java:98)
      at com.ruoyi.web.controller.system.SysRegisterController.weixinGetCode(SysRegisterController.java:95)
      at sun.reflect.GeneratedMethodAccessor189.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:498)
      at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205)
      at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:150)
      at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:117)
      at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:903)
      at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:809)
      at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)
      at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1072)
      at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:965)
      at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)
      at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:898)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:529)
      at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:623)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:209)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)
      at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:178)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)
      at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:61)
      at org.apache.shiro.web.servlet.A dviceFilter.executeChain(AdviceFilter.java:108)
      at org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)
      at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:154)
      at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66)
      at org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108)
      at org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)
      at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:154)
      at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66)
      at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:458)
      at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:373)
      at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
      at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
      at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:387)
      at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:370)
      at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:154)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:178)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)
      at com.alibaba.druid.support.http.WebStatFilter.doFilter(WebStatFilter.java:114)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:178)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)
      at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100)
      at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:178)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)
      at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93)
      at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:178)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)
      at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)
      at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:178)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:167)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:90)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:481)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:130)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:93)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
      at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:390)
      at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:63)
      at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:926)
      at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1791)
      at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:52)
      at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)
      at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)
      at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
      at java.lang.Thread.run(Thread.java:748)
      07-11
      回复
  • 胡诌扒了扯
    胡诌扒了扯
    2023-04-14

    解决了嘛,我现在是无线报错,一次都不成功

    2023-04-14
    有用
    回复
  • 👹听红颜👺
    👹听红颜👺
    2022-07-05

    我们这边也是,有一家公众号,一直频繁的出现这个问题,导致服务器CPU爆满卡死,程序问题,服务容器优化能做的做完了,仍然存在,官方能否协助查一下原因。出现时间2022年7月5日11时08分34秒。

    补充一下,开发环境与帖主一样,JDK1.8,使用的commons-httpclient 3.1的包进行接口调用
    


    2022-07-05
    有用
    回复 1
    • 夳尒
      夳尒
      2022-07-08
      我这之前一直是好的,大概这周开始百分之一的用户可能会触发这个报错,调用的是微信的 jscode2session 接口,httpclient 4.5.6 j1.8
      2022-07-08
      回复
登录 后发表内容
问题标签