Hello Team, We have a GraphQL API and I try to set up wiremock for that. While stop recording, I’m getting HTTP 422 error with the below error message.
Error :
“errors” : [ {
“code” : 10,
“source” : { },
“title” : “Error parsing JSON”,
“detail” : “Unrecognized token ‘query’: was expecting (JSON String, Number, Array, Object or token ‘null’, ‘true’ or ‘false’)\n at [Source: (String)\“query userQuery { user(id : \“hghhgghgghh\“) { teamuserinfo }}\“; line: 1, column: 6]”
} ]
}
Is there a way to handle non-json response from the service in wiremock?