-
Notifications
You must be signed in to change notification settings - Fork 7.1k
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
Replace Locust load generator's httpUser with fastHttpUser #1973
Comments
@antokarant thank you for reporting this to us. We will review your use case and see if we can assist. Can you please share the full request and response bodies for the aforementioned requests? |
Hello @minherz thanks for your reply. The requests are the ones that already exist in the locustfile.py. When trying with postman or curl I just create a default post request to /setCurrency or /cart/checkout and it works fine without any headers or body. I also tried it with python requests library and no problem occurred with it either. In the meanwhile, I found that by replacing HttpUser with FastHttpUser the problem seems to go away so it might be something in the configuration of HttpUser that causes the issue.(a default request flag maybe) |
@antokarant thanks for the very clear description of your issue!
Questions:
Thanks! |
@NimJay thanks for your reply.
Question: Thanks! |
@antokarant I've just merged a fix for this, which should be available through |
I have a remote kubernetes cluster and trying to use locust either from the load generator pod targeting the frontend or locally targeting the port-forwarded frontend causes an error in the two endpoints mentioned above. Everything else works fine. Creating requests to these endpoints either through postman or through curl does not generate the same error and my first guess was that it had something to do with the session-id cookie. I tried to add to the requests a generated cookie but it did not resolve my issue. The cluster runs the kustomize version so that i can also use Istio. I also tried https requests but that caused an issue in all the endpoints.
The text was updated successfully, but these errors were encountered: