volleyでハマったこと HTTPステータスコード 401 が返却されているはずなのに、ステータスコードが取得できない! (正確には -1が返却されてる) その時は以下の警告が表示された。 java.io.IOException:No authentication challenges found 原因を探る どこでExceptionが出ているのか原因を探ってみました。 まずはVolleyのRequestQueue内を探ってみました。 Volley#newRequestQueue() public static RequestQueue newRequestQueue(Context context, HttpStack stack) { File cacheDir = new File(context.getCacheDir(), DEFAULT_CACHE_DIR); String
![[Android] Volleyライブラリでハマったこと | DevelopersIO](https://cdn-ak-scissors.b.st-hatena.com/image/square/091f15a7d75f8343165a62700143a86becce2771/height=288;version=1;width=512/https%3A%2F%2Fdevio2023-media.developers.io%2Fwp-content%2Fuploads%2F2013%2F09%2Fandroid.png)