Android Tweet embed: Some profile pictures won't load


#1

Some avatars will not load in my TweetViews and it seems to be as a result of an underlying Picasso exception, as follows:

java.io.IOException: Received response with 0 content-length header.
at com.squareup.picasso.NetworkBitmapHunter.decode(NetworkBitmapHunter.java:66)
at com.squareup.picasso.BitmapHunter.hunt(BitmapHunter.java:144)
at com.squareup.picasso.BitmapHunter.run(BitmapHunter.java:101)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:818)
at com.squareup.picasso.Utils$PicassoThread.run(Utils.java:394)

There seems to be some discussion related to this error here, in case this would help.

My TweetViews fail to load the avatar of this tweet, for example and also for my own tweets (e.g.)

Any idea what’s going on here?

UPDATE

As a workaround: the issue went away when I cleared the cache of my app but I would still like to get to the bottom of this as my users won’t know the reason behind the images not loading.

FURTHER UPDATE

The issue came back again just with using the functionality a dozen or so more times. Has anyone had a chance to look at this yet? My app won’t really be ready for the wild until I can get to the bottom of this.


#2