Written by

Question Touggourt · 2 hr ago

HTTP 400 bad request

Hi Guys,

I've the below code to build JSON and send it via httpRequest called from business Operation.

But I'm getting this error, which I'm guessing that the formulated JSON doesn't have the correct format, so I was looking to convert the JSONStream to JSON string and try to validate it so see where the JSON is broken, problem is that I'm expecting that there will thousands of records in this JSON so it will hard to go through it, so is there a way to track for error or why this JSON is failing to send    

Thanks

Product version: IRIS 2025.3

Comments

Eduard Lebedyuk · 9 min ago

Form httpRequest in a local terminal session and send it using 

do httpRequest.Post("/Car/Save", test)

If test is 1 then instead of connecting to a remote machine it will just output what it would have send to the web server to the current device, if test is 2 then it will output the response to the current device after the Post. 

0