We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

GraphQL API throwing error - The payload is not valid JSON

prashantdharne
Tera Contributor

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

DineshS
Tera Guru

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...