[英]i am getting HTTPError('502 Server Error: Bad Gateway for 'https://myurl") using locust with python
while executing locust load test i have faced the mentioned issue and I have checked in my application insights there is no errors.在执行蝗虫负载测试时,我遇到了上述问题,并且我检查了我的应用程序洞察力,没有发现任何错误。 so please help me how to resolve find the exact cause of this issue所以请帮我解决这个问题的确切原因
@task(1)
def test(self):
r = self.client.post("url",data=json.dumps(payload), headers=headers, catch_response=False)
self.interrupt()
There is not a lot more Locust can tell you: the server/URL you requested returned a 502 error. Locust 没有更多信息可以告诉您:您请求的服务器/URL 返回了 502 错误。 You can check exactly what URL locust ran against using print(r.url)
(if it is literally https://myurl
like you say in the title then that is your problem:)您可以使用print(r.url)
准确检查 URL 蝗虫针对的是什么(如果字面意思是https://myurl
就像您在标题中所说的那样,那就是您的问题:)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.