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

Vithyatharan Surya Sekar 0 Reputation points
2023-07-06T06:30:46.36+00:00

Error

While using Azure Load Testing with JMeter scripts (.jmx files), I encountered an error during the execution. Initially, everything was running smoothly in Azure, but at a certain point, I started receiving a 400 error status code for a PUT API call.

What I do in the Script: I retrieved the response data from a preceding GET call and stored it in a variable with the help of Json Extractor. Subsequently, I utilized the JSR223 Preprocessor in JMeter, using Groovy code to pass this variable to the subsequent PUT API call.

What I have tried: Despite my attempts to sanitize the potentially malicious payload using Groovy code within the JSR223 Preprocessor, I was unable to resolve the issue.

It is worth noting that the same setup worked without any problems in my local environment, indicating that the failure is specific to the Azure Load Testing platform.

I am currently seeking guidance or assistance in identifying the cause of the error and finding a solution to successfully execute the PUT API call within the Azure Load Testing environment.

Azure Load Testing
Azure Load Testing
An Azure service that enables developers and testers to generate insights on how to improve the performance, scalability, and capacity usage of their application
58 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.