使用NewsApi时android中出现意外响应代码403
每当我使用新闻API时,它都会给我E/Volley:[593]NetworkUtility.shouldRetryException:异常的意外响应代码403,但我使用的其他API都不会引发此异常,请帮助我解决此问题,我在过去3天内一直在努力寻找解决方案使用NewsApi时android中出现意外响应代码403,android,android-volley,http-status-code-403,Android,Android Volley,Http Status Code 403,每当我使用新闻API时,它都会给我E/Volley:[593]NetworkUtility.shouldRetryException:异常的意外响应代码403,但我使用的其他API都不会引发此异常,请帮助我解决此问题,我在过去3天内一直在努力寻找解决方案 String url = "https://newsapi.org/v2/everything?q=Apple&from=2021-04- 23&sortBy=popularity&apiKey=1ea1
String url = "https://newsapi.org/v2/everything?q=Apple&from=2021-04-
23&sortBy=popularity&apiKey=1ea1cbe36dfd4fdcb846a6f885593f95";
JsonObjectRequest req = new JsonObjectRequest(Request.Method.GET, url, null,
response -> {
Log.d("show", "Response came ");
}, error -> {
Log.d("show", "No response");
});
MySingleton.getInstance(this).addToRequestQueue(req);
}