I am using retrofit to make a post api call, I am getting the following error while trying to hit the endpoint.
Caused by: rx.exceptions.OnErrorNotImple
@Body String emptyBody wasn't working for me as backend server I was working with, was returning Bad request and not accepting empty string as a body.
I've just sent empty JSON instead of empty String
@POST("/some/url)
Observable
and then I just called my method like this:
doThing(new JsonObject());
Hope it will help if someone has similar problem.