Retrofit/OkHttp api calls not completing: "read: unexpected EOF!" printed

I found a solution here https://sites.google.com/site/zhuoweisite/blog/fixingreadunexpectedeoferrorwhenusinglogcatonandroid80

execute this command on your terminal

adb logcat -G 1m