当我尝试在中国aws环境中以日志的形式发送短信时,我遇到了一个例外。什么会导致这个问题?twilio api是否无法从中国地区获得?当我们在非中国环境下运行时,发送短信的过程正常工作。我尝试向非中国用户发送短信(例如乌克兰)
020-11-20 13:06:36,597 ERROR (ID 9f95d1c6-f082-4729-8dc2-22f4f71860c0) (USER ) (SRC c.m.d.c.c.ejb) (REQ POST /carePartners/changeStatus) ConnectEJB.sms 'dihik' [server name: null, max mem (mb): 5813, total mem (mb): 5813, free mem (mb): 4781, used mem (mb): 1032, dihik, loaded account in 5, [ConnectEJB.sms], alarm UUID: null, +38093 118 6575, smsVendor=TwilioSMS, toPhoneNum=+38093 118 6575, submitted in 735, ERROR]: java.lang.RuntimeException: 'dihik' sending SMS: com.medtronic.diabetes.carelink.connect.sms.SMSException: Remote host closed connection during handshake; com.twilio.exception.ApiException Remote host closed connection during handshake
at com.medtronic.diabetes.carelink.connect.ejb.ConnectSMSBean.onMessageWorker(ConnectSMSBean.java:165)
at com.medtronic.diabetes.carelink.connect.ejb.AbstractConnectBean.executeWorkerContext(AbstractConnectBean.java:336)
暂无答案!
目前还没有任何答案,快来回答吧!