MIME type for Token Endpoint

Hi Matt

I’m not familiar with that library but are you setting the Content-Type or
Accept headers to ‘application/json’?

OllyOn Tuesday, May 15, 2012 4:29:16 PM UTC+1, Matt Oakley wrote:

Hi Guys,

I am making a call to the OAuth token endpoint using the RestKit library
for iOS and I am getting an error that a ‘(null)’ MIME type is returned and
it therefore doesn’t know whether to use its internal JSON or XML parser.
Obviously we know that it’s returning JSON as per the docs, but could we
confirm whether it is returning a MIME type in the header for this response
and if not, maybe it should be?

Thanks

Matt

Sorry Olly,

Further digging showed that I was receiving an HTTP Basic authentication
error, hence I wasn’t receiving a JSON response. I have resolved this error
and now receive the correct response.

MattOn Wednesday, May 16, 2012 10:40:37 AM UTC+1, Olly H wrote:

Hi Matt

I’m not familiar with that library but are you setting the Content-Type or
Accept headers to ‘application/json’?

Olly

On Tuesday, May 15, 2012 4:29:16 PM UTC+1, Matt Oakley wrote:

Hi Guys,

I am making a call to the OAuth token endpoint using the RestKit library
for iOS and I am getting an error that a ‘(null)’ MIME type is returned and
it therefore doesn’t know whether to use its internal JSON or XML parser.
Obviously we know that it’s returning JSON as per the docs, but could we
confirm whether it is returning a MIME type in the header for this response
and if not, maybe it should be?

Thanks

Matt