SpRestLib icon indicating copy to clipboard operation
SpRestLib copied to clipboard

New issue with Response Header...

Open dgutman opened this issue 5 years ago • 1 comments

-Type: application/atom+xml;type=feed;charset=utf-8

Perhaps in an afront to my sanity, one of the sharepoint servers I am querying, despite requesting a JSON response, seems to be returning application/atom+xml.

I am certain when I ran the exact code about 4 weeks ago it was working, so I am assuming something may have changed in the server configuration that I wasn't aware of. It looks like the data is still being returned if I look at the raw response data, , but I am guessing SPRestLib isn't parsing it anymore..

Has anyone dealt with something similar to this?

image

dgutman avatar Jan 24 '19 15:01 dgutman

Hi @dgutman

What API method are you using and what's the version of SpRestLib?

Are you adding the content-type yourself in the headers?

Are no results being returned, eg: an empty array?

gitbrent avatar Jan 25 '19 05:01 gitbrent