Hanzala Iqbal Hanzala Iqbal - 8 months ago 63
Java Question

Retrofit POST java.io.EOFException occurs when I append parameters

I am using retrofit API for POST request it works fine for me if I use it to request without sending any parameter like this:

void postFeedCat(Callback<AllNews> callback);

But when I want to try this:

void postFeedNews(@Field("news_Id") String news_Id, Callback<AllNews> callback);

it returns

retrofit.RetrofitError: java.io.EOFException

but if this is tried more than one time it works successfully


Please Check new implementation here