Let me start by saying I know the problem is the backend is the response, but there is nothing I can do about it. So...
I have a GET request that, on some cases, will send back a 200 response with an empty body. Again, can't change it.
Using Restkit, I have fairly every possible case properly mapped and everything works like a charm, but with this specific case I can't get it to be mapped as it should.
From everything I've seen, this seems to be the most accurate option to what I'm trying to do.
But, for some reason, the response descriptor doesn't seem to be picked up and the response is treated as a failure with the following error:
Error Domain=org.restkit.RestKit.ErrorDomain Code=-1017 "Loaded an unprocessable response (200) with content type 'application/json'"
Is there an 'easy' way to properly map an empty response, or even a string as response (clearly with no JSON structure whatsoever) ?
Thanks in advance for any light you can shed in my direction.
some cases, so do you have multiple response descriptors matching the same path pattern? You have the correct solution, the question is just why it isn't used... - Wain