In Rest Message response I am getting "HTML" data instead of record data

Sathwik1
Tera Expert

In Rest Message response I am getting "HTML" data instead of record data{JSON} like below screenshot..

Response

find_real_file.png

 

find_real_file.png

 

In HTTP Header, I provided JSON only

find_real_file.png

 

@Ankur Bawiskar 

4 REPLIES 4

Saurav11
Kilo Patron
Kilo Patron

Hello,

Paste that endpoint in the browser and check what result is returned

Hi,

Tried, I am getting records link only..then what is the issue?

For authentication, I used basic auth..

In that I used the userid and password same as other instance userid and password..

 

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

Did you try giving Content Type - application/json?

Possibly you are hitting the wrong endpoint and hence it is giving the page HTML code and not actual json?

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@Sathwik 

Thank you for marking my response as helpful.

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader