Skip to content
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

JSONDecodeError while running tests #28

Closed
xeronix opened this issue Dec 7, 2023 · 0 comments · Fixed by #29
Closed

JSONDecodeError while running tests #28

xeronix opened this issue Dec 7, 2023 · 0 comments · Fixed by #29

Comments

@xeronix
Copy link

xeronix commented Dec 7, 2023

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/[email protected]/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/[email protected]/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/[email protected]/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.

@jmfiola jmfiola linked a pull request Dec 9, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant