Error processing JSON content in JSON Extractor, message: net.minidev.json.parser.ParseException: Malicious payload,

204 Views Asked by At

I am facing this error in the Azure Load Testing using jmeter scripts (.jmx files) Error Screenshot from the log

When running The Azure Load Tests with the .jmx file, it was working fine for a while but suddenly got the error stated above (error status code of 400) for a PUT API call. It seems to only occur for large responses, especially the ones including JSONs with multiple nesting levels.

The same setup seems to still work fine in my local setup and is only failing via Azure.

I have tried to sanitize this malicious payload via Groovy code in the JSR223 Preprocessor with no results.

Please, kindly assist in resolving the issue.

1

There are 1 best solutions below

1
On BEST ANSWER

You should rather report it to Azure Support if it happens only in Azure.

The workarounds I can think of are:

  1. Switch to JSON JMESPath Extractor
  2. Switch to JSR223 PostProcessor and use Groovy language. See Parsing and producing JSON article for details.

If you need help on this you will need to provide your JSON response and indicate which data you want to extract from there.