0

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.

dev90
  • 7,187
  • 15
  • 80
  • 153

1 Answers1

0

I have faced a similar problem before : If you are using Retrofit then try updating it to the latest version as mentioned here

Manish Gupta
  • 129
  • 9