In Rest Message response I am getting "HTML" data instead of record data
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2022 03:50 AM
In Rest Message response I am getting "HTML" data instead of record data{JSON} like below screenshot..
Response
In HTTP Header, I provided JSON only
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2022 04:08 AM
Hello,
Paste that endpoint in the browser and check what result is returned
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2022 04:24 AM
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..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2022 09:27 PM
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
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2022 11:30 PM
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
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader