Код: Выделить всё
JsonObjectRequest request = new JsonObjectRequest(
Request.Method.POST,
CustomNetworkManager.getInstance(this.getActivity().getApplicationContext()).getRequestUrl(url),
requestData,
new Response.Listener() {
@Override
public void onResponse(JSONObject response) {
// process response
} catch (JSONException e) {
e.printStackTrace();
}
}
},
new Response.ErrorListener() {
@Override
public void onErrorResponse(VolleyError error) {
Log.d("FeedFragment", "Volley error: " + error.toString());
}
});
Код: Выделить всё
D/FeedFragment: Volley error: com.android.volley.NoConnectionError: javax.net.ssl.SSLHandshakeException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.
Спасибо за вашу помощь.
редактировать: если кто-то сталкивается с той же ошибкой, убедитесь, что у вас нет проблем с сертификатами (http://developer.android.com/intl/pt-br ... onProblems)
Подробнее здесь: https://stackoverflow.com/questions/360 ... -only-in-r