acme_fitness_demo icon indicating copy to clipboard operation
acme_fitness_demo copied to clipboard

Locust error

Open theluke opened this issue 1 year ago • 0 comments

Hi, I am getting this error

Traceback (most recent call last):
  File "/usr/local/lib/python3.8/dist-packages/locust/user/task.py", line 296, in run
    self.execute_next_task()
  File "/usr/local/lib/python3.8/dist-packages/locust/user/task.py", line 321, in execute_next_task
    self.execute_task(self._task_queue.pop(0))
  File "/usr/local/lib/python3.8/dist-packages/locust/user/task.py", line 330, in execute_task
    task(self).run()
  File "/usr/local/lib/python3.8/dist-packages/locust/user/task.py", line 281, in run
    self.on_start()
  File "/root/locustfile.py", line 101, in on_start
    self.login()
  File "/root/locustfile.py", line 118, in login
    self.user.userid = body["token"]
KeyError: 'token'

When running locust with the provided locust file and the following locust.conf parameters:

locustfile = /root/locustfile.py
headless = true
expect-workers = 0
host = http://localhost:30430
users = 10
spawn-rate = 5
run-time = 5m

theluke avatar Jul 03 '23 07:07 theluke