I am getting java.net.ProtocolException: Expected ':status' header not present
on few images when loading them from picasso
.
If i open the image from browser it loads fine.
The is how i am loading the images.
Picasso.with(getApplicationContext()).load(imageURL)
.fit()
.centerInside()
.into(ivNews, new Callback() {
@Override
public void onSuccess() {
//Display Message
}
@Override
public void onError() {
Log.d(ERROR, "something went wrong");
}
});
As mentioned here, this isn't picasso fault, but what possible steps i can take to avoid this issue, and load image if this type of problems occurs on server side.