蝗虫:ConnectionError(ProtocolError('Connection aborted。',BadStatusLine(“''”,)),)

Har*_*ris 5 python load-testing python-2.7 locust

我正在表演Load-tests一些Rest APIs使用Locust。除了使我感到困惑的错误外,其他所有东西都工作正常:

ConnectionError(ProtocolError('Connection aborted.', BadStatusLine("''",)),)
Run Code Online (Sandbox Code Playgroud)

我已经阅读了有关此问题的其他问题,并发现以下事实:

当python无法理解服务器响应时,会出现此错误。

我想知道的是:

1)如果此问题与服务器有关,可以采取什么措施?

2)这个问题是由测试的故障代码引起的吗?

我想知道此错误是由于test写入错误Locust或服务器出现故障。如果我不清楚的话,请告诉我。