google / volley

https://google.github.io/volley
Apache License 2.0
3.38k stars 751 forks source link

E/Volley: [42916] NetworkUtility.shouldRetryException: Unexpected response code 403 #415

Open msn2106 opened 3 years ago

msn2106 commented 3 years ago

E/Volley: [42916] NetworkUtility.shouldRetryException: Unexpected response code 403 for https://newsapi.org/v2/top-headlines?country=us&category=business&apiKey=271580bf514747cXXXXXXXXXXXXXXXXX

Code for reference: - https://github.com/msn2106/NewsApp/issues/2

jpd236 commented 3 years ago

Can you try reproducing this when using HttpURLConnection directly?

If it only happens with Volley and not HttpURLConnection, then maybe there's something else we're doing differently. But if it happens with HttpURLConnection, then there is something else that is causing this server to reject the request that you'll need to fix on your side.

fihad247 commented 1 year ago

same problem