"Failed to connect to api.twilio.com port 443: Connection refused" 错误
"Failed to connect to api.twilio.com port 443: Connection refused" error
我在常规设置下禁用了 SSL 证书验证,因为我的 WordPress 网站使用的是 http。
但我仍然获得 "Failed to connect to api.twilio.com port 443: Connection refused" 的实时和测试证书。”
我还清除了浏览器上的缓存。
我正在使用 https://www.twilio.com/blog/2017/08/send-sms-wordpress-php-plugin.html 中的指南。
该设置是否需要时间来删除 SSL 证书验证或其他可能出错的地方?
我在做 POC 使用 twilio 发送短信时也面临着同样的挑战。这是我遇到的异常。
Exception in thread "main" com.twilio.exception.ApiException: Connect to api.twilio.com:443 [api.twilio.com/54.209.184.12, api.twilio.com/52.45.186.111, api.twilio.com/52.4.111.215, api.twilio.com/52.5.142.82, api.twilio.com/54.165.83.5, api.twilio.com/54.84.239.1, api.twilio.com/52.45.52.233, api.twilio.com/52.72.204.95] failed: Connection refused: connect
at com.twilio.http.NetworkHttpClient.makeRequest(NetworkHttpClient.java:128)
at com.twilio.http.HttpClient.reliableRequest(HttpClient.java:42)
at com.twilio.http.HttpClient.reliableRequest(HttpClient.java:25)
at com.twilio.http.TwilioRestClient.request(TwilioRestClient.java:42)
at com.twilio.rest.api.v2010.account.MessageCreator.create(MessageCreator.java:402)
由 Twilio 支持回答"All connections to the Twilio API endpoints must use HTTPS and so if you have no SSL Cert for your Wordpress website it will refuse the request. You will need to get an SSL Certificate for your website in order to call the API endpoints from your Wordpress site/domain. Disabling SSL Certificate Validation setting on Twilio dashboard is for calls from Twilio to your servers, not the other way around."
我在常规设置下禁用了 SSL 证书验证,因为我的 WordPress 网站使用的是 http。 但我仍然获得 "Failed to connect to api.twilio.com port 443: Connection refused" 的实时和测试证书。” 我还清除了浏览器上的缓存。 我正在使用 https://www.twilio.com/blog/2017/08/send-sms-wordpress-php-plugin.html 中的指南。 该设置是否需要时间来删除 SSL 证书验证或其他可能出错的地方?
我在做 POC 使用 twilio 发送短信时也面临着同样的挑战。这是我遇到的异常。
Exception in thread "main" com.twilio.exception.ApiException: Connect to api.twilio.com:443 [api.twilio.com/54.209.184.12, api.twilio.com/52.45.186.111, api.twilio.com/52.4.111.215, api.twilio.com/52.5.142.82, api.twilio.com/54.165.83.5, api.twilio.com/54.84.239.1, api.twilio.com/52.45.52.233, api.twilio.com/52.72.204.95] failed: Connection refused: connect
at com.twilio.http.NetworkHttpClient.makeRequest(NetworkHttpClient.java:128)
at com.twilio.http.HttpClient.reliableRequest(HttpClient.java:42)
at com.twilio.http.HttpClient.reliableRequest(HttpClient.java:25)
at com.twilio.http.TwilioRestClient.request(TwilioRestClient.java:42)
at com.twilio.rest.api.v2010.account.MessageCreator.create(MessageCreator.java:402)
由 Twilio 支持回答"All connections to the Twilio API endpoints must use HTTPS and so if you have no SSL Cert for your Wordpress website it will refuse the request. You will need to get an SSL Certificate for your website in order to call the API endpoints from your Wordpress site/domain. Disabling SSL Certificate Validation setting on Twilio dashboard is for calls from Twilio to your servers, not the other way around."