When I am running locust I frequently get the following ERROR Message:
*[2023-09-23 13:42:29,178] cs-296442668656-default/ERROR/locust.user.task: Expecting value: line 1 column 1 (char 0)
Traceback (most recent call last):
File “/usr/local/lib/python3.9/dist-packages/requests/models.py”, line 971, in json
return complexjson.loads(self.text, **kwargs)
File “/usr/lib/python3.9/json/init.py”, line 346, in loads
return _default_decoder.decode(s)
File “/usr/lib/python3.9/json/decoder.py”, line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File “/usr/lib/python3.9/json/decoder.py”, line 355, in raw_decode
raise JSONDecodeError(“Expecting value”, s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/home/student_02_16d17326d933/.local/lib/python3.9/site-packages/locust/user/task.py”, line 290, in run
self.execute_next_task()
File “/home/student_02_16d17326d933/.local/lib/python3.9/site-packages/locust/user/task.py”, line 315, in execute_next_task
self.execute_task(self._task_queue.pop(0))
File “/home/student_02_16d17326d933/.local/lib/python3.9/site-packages/locust/user/task.py”, line 428, in execute_task
task(self.user)
File “/home/student_02_16d17326d933/tfserving-gke/locust/tasks.py”, line 69, in predict
if ‘error’ in response.json():
File “/usr/local/lib/python3.9/dist-packages/requests/models.py”, line 975, in json
raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
[2023-09-23 13:42:29,180] cs-296442668656-default/ERROR/locust.user.task: Expecting value: line 1 column 1 (char 0)
Traceback (most recent call last):
File “/usr/local/lib/python3.9/dist-packages/requests/models.py”, line 971, in json
return complexjson.loads(self.text, *kwargs)
File “/usr/lib/python3.9/json/init.py”, line 346, in loads
return _default_decoder.decode(s)
File “/usr/lib/python3.9/json/decoder.py”, line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File “/usr/lib/python3.9/json/decoder.py”, line 355, in raw_decode
raise JSONDecodeError(“Expecting value”, s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/home/student_02_16d17326d933/.local/lib/python3.9/site-packages/locust/user/task.py”, line 290, in run
self.execute_next_task()
File “/home/student_02_16d17326d933/.local/lib/python3.9/site-packages/locust/user/task.py”, line 315, in execute_next_task
self.execute_task(self._task_queue.pop(0))
File “/home/student_02_16d17326d933/.local/lib/python3.9/site-packages/locust/user/task.py”, line 428, in execute_task
task(self.user)
File “/home/student_02_16d17326d933/tfserving-gke/locust/tasks.py”, line 69, in predict
if ‘error’ in response.json():
File “/usr/local/lib/python3.9/dist-packages/requests/models.py”, line 975, in json
raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
I restarted the lab to make sure I was not mistaken anywhere, but the ERROR is the same again, and I don’t see a second pod getting started. I think it is coming of the ERROR in execute_next_task