java jmeter 响应代码:500 响应消息:内部服务器错误响应头:
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/42395759/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
jmeter Response code: 500 Response message: Internal Server Error Response headers:
提问by Billy Yang
I am running jmeter and encounter this problem, i have tried cookie manager and header manager, cache manager there, the problem is still there.
我正在运行 jmeter 并遇到这个问题,我在那里尝试了 cookie 管理器和头管理器,缓存管理器,问题仍然存在。
POST data:
发布数据:
store_id=34926840&country_code=SE&amount=2.00&merchant_reference=1487698674350&bank_name=Forex+Bank&payment_reference=DHUDYTHMMTV&internal_reference=185524¤cy_code=SEK&status=PENDING
Cookie Data:
饼干数据:
JSESSIONID=A5A4905F9FBDF18DC47A376F0226A388; AWSELB=B5FF67AD1CFA5460C8C7E086624D3BB9CE4C254E9C05CAED2F8B4C138D77F2FB3E8E2D91BE28957E695EB58D84B77AABC0950A0B63FB43504A613D484F319EB551578DB7CB
Request Headers:
请求头:
Connection: keep-alive
Origin: https://qa.instantinternetbanking.com
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36
Content-Type: application/x-www-form-urlencoded
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Referer: https://qa.instantinternetbanking.com/internetbanking/webPASubmitData.form
Accept-Encoding: gzip, deflate, br
Accept-Language: en-US,en;q=0.8
Content-Length: 188
回答by Dmitri T
The 5xx (Server Error) class of status code indicates that the server is aware that it has erred or is incapable of performing the requested method...
The 500 (Internal Server Error) status code indicates that the server encountered an unexpected condition that prevented it from fulfilling the request.
5xx(服务器错误)类状态代码表示服务器知道它有错误或无法执行请求的方法......
500(内部服务器错误)状态代码表示服务器遇到了阻止其完成请求的意外情况。
So I can see 2 possible explanations:
所以我可以看到两种可能的解释:
- Issue with your server, execute the same request manually using browser to see of it is the case.
- Issue with your request. When it comes to more or less complex web applications testing you cannot just record and replay the test, you need to keep in mind that there could be some mandatory dynamic parameters which need to be handled (the process is known as correlation) or some actions are not repeatable (for instance if transaction with reference number
DHUDYTHMMTV
is already finished you cannot send it once again, you will need a new one), etc.
- 您的服务器出现问题,请使用浏览器手动执行相同的请求以查看情况。
- 您的请求有问题。当涉及或多或少复杂的 Web 应用程序测试时,您不能仅仅记录和重放测试,您需要记住可能需要处理一些强制性动态参数(该过程称为相关性)或某些操作不可重复(例如,如果带有参考号的交易
DHUDYTHMMTV
已经完成,您不能再次发送,您将需要一个新的)等。