Locust: ConnectionError (ProtocolError ('Connection aborted.', BadStatusLine ("''",)),)

I perform Load-testsfor some Rest APIsusing Locust. Everything works fine, except for the error that confused me:

ConnectionError(ProtocolError('Connection aborted.', BadStatusLine("''",)),)

I read other questions regarding this problem, and came across the fact that:

This error occurs when python cannot understand the server response.

What I want to know:

1) If this problem is related to the server, what can be fixed?

2) Is this problem caused by the DTC?

I want to know that this error is related to what is testwritten to Locust, or to a server that is not working correctly. Please let me know if I do not know, ask a question.

+4

Source: https://habr.com/ru/post/1683429/


All Articles