REST calls do not work with Load agents: invalid JSON
I have my testcases with REST calls which work perfect when I run them locally.
But when I let them run by load agents I get a lot of http 500 errors.
The webserver shows
cnqq2wfzbrywrx304vgetyhy  FATAL Global - (153) 1> Exception: Invalid JSON primitive: .
Tthe dot is given by the webserver, not typed by me.
Anyone any idea about this?
Unfortunately I do not find a way to get a raw request when the load agents are running, I only can give a raw by executing the testcase manually.
POST https://myURL.com/en/ShoppingCart/AddToCart HTTP/1.1
User-Agent: Apache-HttpClient/4.5.2 (Java/12.0.1)
Solved! Go to Solution.
Found the problem:
- one property I used in the Login turned out to be empty sometimes - I am still wondering how it worked without locally, without Loadagent
- then also, there were some empty values when the datasource (jdbc) ran out of data and did not restart it. I has to check in the datasource checkbox "Skip loop on empty" in the options