javax.net.ssl.SSLHandshakeException: No enabled protocols; SSLv3 is no longer supported and was filtered from the list

Viewed 1063

Getting this error while hitting API request through volley, It occurs for first time only, Later no error occurs api works fine.Any idea why this is happening.

javax.net.ssl.SSLHandshakeException: No enabled protocols; SSLv3 is no longer supported and was filtered from the list

Note : this isn't os specific, for this is reproducing on 4.x,5.x ,6.x as well.

1 Answers

A solution is to increase the time out duration of your Volley request. Setting this duration to 20 seconds should fix the problem.

Here is how to do it:

//request is an instance of StringRequest or JsonObjectRequest
request.setRetryPolicy(new DefaultRetryPolicy(20000, 2, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT));
Related