BasicNetwork.performRequest: Unexpected response code 400 for <AWS S3 url>
在使用imageView
中的Volley
库将图像加载到android
时,我得到了这个错误。
下面是代码:
VolleyCustomImageLoader mImageLoader;
mImageLoader = AppController.getInstance().getImageLoader();
mImageLoader.get(URLPath,
VolleyCustomImageLoader.getImageListener(imageView,
R.drawable.ic_user, R.drawable.ic_user));
发布于 2018-01-06 16:46:22
在VolleyCustomImageLoader中发出请求时,您应该检查这些AWS S3 error codes &以验证是否发送了Http标头
尝试使用以下命令打印VolleyLogs
VolleyLog.DEBUG = true;
并查看您可以从中获得的任何其他重要信息,您也可以将该日志作为问题的一部分进行分享。
不过,我可以通过HTTP获取您在评论中提供的图像URL。
我猜你可能因为隐私问题而没有分享你面临问题的实际URL?
发布于 2018-01-05 23:27:07
很可能是代理问题。但是,将域更改为真实的IP地址;将https://www.facebook.com/images/fb_icon_325x325.png更改为https://31.13.71.36/images/fb_icon_325x325.png
如果不工作的话!您可能需要配置WStunnel,请参阅this以进行相关
https://stackoverflow.com/questions/48021220
复制