alteryx / locust-grasshopper

a load testing tool extended from locust
Apache License 2.0
177 stars 9 forks source link

JSONDecodeError while running tests #28

Closed xeronix closed 11 months ago

xeronix commented 11 months ago

Test run startup works fine but after a while it gives following error:

2023-12-06 22:48:13 [    INFO] VU 71: Starting workflow run journey for workflow 'amp_small_workflow' ... (test_run_workflow.py:73)
2023-12-06 22:48:13 [   ERROR] response of the POST /svc-workflow/api/v0/workflows/01HE2V169NPFXFW86FH4JS3BN6/run?executionEngine=amp is 0 - None (core.py:160)
2023-12-06 22:48:13 [   ERROR] Expecting value: line 1 column 1 (char 0)
Traceback (most recent call last):
  File "/Users/vipul.mehta/Dev/WS/shield-trifacta/virtualenv/shield-test-1/lib/python3.10/site-packages/requests/models.py", line 971, in json
    return complexjson.loads(self.text, **kwargs)
  File "/opt/homebrew/Cellar/python@3.10/3.10.13/Frameworks/Python.framework/Versions/3.10/lib/python3.10/json/__init__.py", line 346, in loads
    return _default_decoder.decode(s)
  File "/opt/homebrew/Cellar/python@3.10/3.10.13/Frameworks/Python.framework/Versions/3.10/lib/python3.10/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/opt/homebrew/Cellar/python@3.10/3.10.13/Frameworks/Python.framework/Versions/3.10/lib/python3.10/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)

Setting ulimit -n 10240 fixed the issue.

Integrate this fix within the framework.