GraphQL API throwing error - The payload is not valid JSON
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-24-2022 07:39 PM
Hi,
We have created an API in GraphQL for simple data fetch using ID of a custom table. This works fine when called via Postman or other tools. But when we call the API using REST API Explorer, it gives the below error. Do we need to provide anything specific when we send the Request using API Explorer?
{
"error": {
"message": "Exception while reading request",
"detail": "The payload is not valid JSON."
},
"status": "failure"
}
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-23-2024 02:19 PM
Conscious it's a delayed response. But looks like the issue is similar to https://www.servicenow.com/community/architect-forum/how-to-call-graphql-api-end-point-using-rest-ap...