We have a test where we pass a JSON object to an endpoint object. The object created in katalon studio passed the JSON object right on through to the endpoint
This test is passing when run in Katalon 6.3.0.rc7, but if we run it in Katalon 6.3.3 it fails with the error message
JSON parse error: Unexpected character ('n' (code 110)): was expecting comma to separate Object entries
To be clear, the enpoint of our microservice is throwing this error, and Katalon fails the test when the api call returns a 400 instead of a 200…
To me it looks like the message being sent to the endpoint is not identical. It seems extra characters are being added to the request object before it leaves Katalon.
Is anyone experiencing this problem?
Is there a way to have the request object printed out so I can see what is actually being sent?
this is why I suggested that always to check for response code, before to attempt to parse the json, to avoid code crashes.
Now, to the issue … how does the URL of your API request looks like? Does contain special (escaped) characters?
If it is a POST … can you show us the body too?
Can you share also the .har file generated by the request?
it may not.
as far as i know there were various updates with regards how the escaping is working (in url’s, in bodies) during various versions … so better use proper and easy readable ways to produce your bodies.
will help you to reduce flakiness