-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2.18 - fasthttp error for no content response #2450
Comments
I think its due to this change https://github.com/locustio/locust/pull/2416/files it is possible that get_encoding_from_headers function will return None which will throw the above error. Need to return as a empty string as per 2.17 |
Oh... yea sounds about right. Or maybe we should just not try to decode at all when there is no content? I dont have time to look at this right now... |
Could just throw in a condition as a quick fix so are able to still utilise the requests lib
|
Prerequisites
Description
Sending a request that generates a no content response is throwing a error when using fasthttp rest. This isn't happening under 2.17
Command line
Locust UI
Locustfile contents
Python version
3.11
Locust version
2.18
Operating system
linux
The text was updated successfully, but these errors were encountered: