3
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));
Divya Nagrath
  • 139
  • 1
  • 2
  • 9

2 Answers2

2

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?.

Akhil
  • 6,667
  • 4
  • 31
  • 61
1

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

Mohamed Embaby
  • 960
  • 8
  • 26