Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

BasicNetwork.performRequest: Unexpected response code 400 for <AWS S3 url>

BasicNetwork.performRequest: Unexpected response code 400 for <AWS S3 url>

I'm getting this error while loading image onto an imageView using Volley library in android.

Here is code:

 VolleyCustomImageLoader mImageLoader;
 mImageLoader = AppController.getInstance().getImageLoader();
 mImageLoader.get(URLPath, 
                VolleyCustomImageLoader.getImageListener(imageView,
                R.drawable.ic_user, R.drawable.ic_user));
like image 488
Divya Nagrath Avatar asked Aug 14 '26 14:08

Divya Nagrath


2 Answers

You should go through these AWS S3 error codes & verify Http Headers being sent while making request in VolleyCustomImageLoader

Try printing VolleyLogs using

VolleyLog.DEBUG = true;

and see any other significant info you can get from it, you can share that log too as part of the question.

Though, I am able to HTTP Get image URL you provided in comments.

Guessing you might not have shared actual URL with which you are facing issues due to privacy concerns?.

like image 52
Akhil Avatar answered Aug 16 '26 03:08

Akhil


Most likely it's Proxy issue. However, change the domain to a real IP address exp; https://www.facebook.com/images/fb_icon_325x325.png to https://31.13.71.36/images/fb_icon_325x325.png

if Not Worked! you may need to configure WStunnel, see this to relate

like image 22
Mohamed Embaby Avatar answered Aug 16 '26 04:08

Mohamed Embaby



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!