本地开发环境调用短信接口,可以正常发送。
部署到ECS服务器则报错:
com.aliyuncs.exceptions.ClientException: SDK.ServerUnreachable : SocketTimeoutException has occurred on a socket read or accept.
at com.aliyuncs.DefaultAcsClient.doAction(DefaultAcsClient.java:221)
at com.aliyuncs.DefaultAcsClient.doAction(DefaultAcsClient.java:169)
at com.aliyuncs.DefaultAcsClient.doAction(DefaultAcsClient.java:60)
at com.aliyuncs.DefaultAcsClient.getAcsResponse(DefaultAcsClient.java:104)
- 魔咒626
socket超时,应该是没有及时读取或发送吧
你买的ECS服务器是不是没有上公网,不能请求外部资源