Locust Login Request Failed #2802
Replies: 7 comments
-
I dont see anything obviously wrong with your code. Maybe it expects json instead of a urlencoded/form-data? Then you wanna use To make That makes it easier to compare locust's request to what the browser does (I'm assuming it works in browser). |
Beta Was this translation helpful? Give feedback.
-
Let me add the logging facility and see how it's going. |
Beta Was this translation helpful? Give feedback.
-
The login post request does not have any error now but there is new get request which require login then it failed. This is the error i get from report. 29 | GET | /account?tab=order | HTTPError('500 Server Error: Internal Server Error for url: /account?tab=order') These two requests require to login first before it appear on web browsers UI. Please help. How to test it? Besides, I have error in too many requests sent in short time frame. How to solve this? |
Beta Was this translation helpful? Give feedback.
-
Please help me.Anyone can answers the questions? Thanks a lot. |
Beta Was this translation helpful? Give feedback.
-
Did you log the request as it was sent by Locust using the suggestion in my first reply and compare it to what your browser sent? The 429 is your server (or load balancer) blocking you, you need to investigate on your server side. Its unlikely you can solve this by modifying your requests/scenario. |
Beta Was this translation helpful? Give feedback.
-
I can added the code from documentation, How to compare the between Locust and browser sent? Sorry to asking stupid question. |
Beta Was this translation helpful? Give feedback.
-
You can use chrome developer tools to show the traffic sent by the browser. Here's my first hit on google :) https://docs.coveo.com/en/2146/coveo-for-sitecore-v5/analyze-http-traffic-using-chrome-developer-tools |
Beta Was this translation helpful? Give feedback.
-
Dear all forumers,
I started a project using Locust for login request but it failed which shows on the report. When i click the login button, the url is as show in the code.
I have the host as https://staging-ticket.revid.my/. Then my code is as follow:
What could be wrong with my code?
Please help. Im totaly new to Locust. Please bear with me.
Beta Was this translation helpful? Give feedback.
All reactions