问题
I am migrating scripts from version 2.9 to 5.1. One request is failing in both versions sending me this error:
:internal server error code 500.
What could be the issue?
回答1:
Almost each JMeter version contains some incompatible changes, you need to walk through the JMeter Changelog, identify all the changes and properly amend your script.
Given JMeter 2.9 was released in February 2013 and now we're in March 2020 I believe it would be easier to record the tests from scratch as application could change in 7 years hence "old" JMeter scripts are not valid anymore.
With regards to HTTP Status Code 500
The HyperText Transfer Protocol (HTTP)
500 Internal Server Error
server error response code indicates that the server encountered an unexpected condition that prevented it from fulfilling the request.This error response is a generic "catch-all" response. Usually, this indicates the server cannot find a better 5xx error code to response. Sometimes, server administrators log error responses like the 500 status code with more details about the request to prevent the error from happening again in the future.
So you need to look into your server logs, most probably you will get the clue regarding what went wrong from them.
来源:https://stackoverflow.com/questions/60493750/why-do-i-get-internal-server-error-with-jmeter-5-1