javax.net.ssl.SSLHandshakeException:握手失败 com.android.org.conscrypt.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:392)
我正在使用AsyncHttpClient库来发出请求。
但我想知道为什么会这样?有什么想法吗?
注意:我在我的网络服务器上使用Cloud Flare
AsyncHttpClient client = new AsyncHttpClient();
client.get("https://api.DOMAIN_NAME.id/v1/merchant/auth/check_email_availability", new AsyncHttpResponseHandler() {
@Override
public void onStart() {
// called before request is started
}
@Override
public void onSuccess(int statusCode, Header[] headers, byte[] response) {
System.out.println("STATUS CODE " + statusCode);
}
@Override
public void onFailure(int statusCode, Header[] headers, byte[] errorResponse, Throwable e) {
// called when response HTTP status is "4XX" (eg. 401, 403, 404)
}
@Override
public void onRetry(int retryNo) {
// called when request is retried
}
});