从AWS Lambda向SQS发送消息时发生连接超时

时间:2019-07-17 05:48:10

标签: spring-boot aws-lambda amazon-sqs

我正在使用Spring Boot开发一个项目,该项目已部署在AWS Lambda上。向SQS发送消息时,出现连接超时错误。 有人可以帮助我摆脱困境吗? 您可以按以下方式检查异常跟踪:

  

由于:org.apache.http.conn.ConnectTimeoutException:连接到   sqs.ap-south-1.amazonaws.com:443   [sqs.ap-south-1.amazonaws.com/52.95.84.28]失败:连接超时   在   org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:151)   在   org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:373)   在sun.reflect.NativeMethodAccessorImpl.invoke0(本机方法)处   sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)   在   sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)   在java.lang.reflect.Method.invoke(Method.java:498)在   com.amazonaws.http.conn.ClientConnectionManagerFactory $ Handler.invoke(ClientConnectionManagerFactory.java:76)   在com.amazonaws.http.conn。$ Proxy67.connect(未知来源)   org.apache.http.impl.execchain.MainClientExec。EstablishmentRoute(MainClientExec.java:381)   在   org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:237)   在   org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:185)   在   org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185)   在   org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83)   在   org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:56)   在   com.amazonaws.http.apache.client.impl.SdkHttpClient.execute(SdkHttpClient.java:72)   在   com.amazonaws.http.AmazonHttpClient $ RequestExecutor.executeOneRequest(AmazonHttpClient.java:1297)   在   com.amazonaws.http.AmazonHttpClient $ RequestExecutor.executeHelper(AmazonHttpClient.java:1113)   ... 20更多原因:java.net.SocketTimeoutException:连接定时   在java.net.PlainSocketImpl.socketConnect(本机方法)处退出

0 个答案:

没有答案