Forum Discussion
Hi, without sounding obvious, is the service you're calling returning valid JSON? Have you checked the validity using an on-line checker?
- usamant3 years agoOccasional ContributorThank you for your reply.
Postman gives valid json response for the same request.
As per the answer found when I googled, it is advised to set Content-Type
as application/json for response.
But then also I am getting same message instead of valid json response and
where as all other like xml, html and other format gives the response.
Your help is much appreciated.
Regards,
Umesh.. - richie3 years agoCommunity Hero
Hey usamant
Apologies - I was really busy with work so had to sort that before checking the board.
Have you sorted this out?
Cheers,
Rich
- usamant3 years agoOccasional Contributor
Hi,
Problem still persists.
Tried every thing
1. Setting Accept header for application/json in request header
2. Setting Representation as c for Response.
3. Setting all Request headers as those are in Postman ( in Postman getting Json response without any setting)
1 thing noticed - Even after setting application/json as Representation of Response(Point 2) Raw tab shows Content-Type as text/html. Seems whatever is set is getting overwrite
Help here is much appreciated.
Thanks,
Umesh..
.
Related Content
- 11 months agoKimdoengart
- 5 years agocpentecost