Join 34,000+ subscribers and receive articles from our
blog about software quality, testing, QA and security.

400{"error":"Invalid or incomplete JSON string in API request."}


#1

Actual Result to be Written in Test Rail’s ‘Comments’ field of ‘Results and Comments’ tab

Success
MIDList = “RETAIL Non-EMV”,“RETAIL EMV”,Check
MarketTypeList = R,R,C
OfflineMode = False
TrainingMode = False
XCVersion = 8.1.1

Error Thrown in QTP while trying to write the above result:
400{“error”:“Invalid or incomplete JSON string in API request.”}


#2

Hi Akshaya,

Thank you for the post. As the message indicates, this would indicate that the request you are passing is not completely correct. I would make sure that this is formatting correctly based on our API documentation which you can find here:

http://docs.gurock.com/testrail-api2/start

Additionally, can you try and pass a simple CURL request to the API and see if that is accepted?