Hello,
I am having trouble uploading a new workflow to our Alteryx Server using the Server API Tool in Designer. More specifically, I am using the 'Workflow Migration' workflow from Alteryx's enterprise utilities.
When it attempts to upload a new workflow using the POST /v3/workflows endpoint, the tool returns a json.decoder.JSONDecodeError. See complete error below. Has anyone dealt with this in the Server API Tool before? I am able to use other endpoints just fine. This error only occurs in the tool, I am able to call the /v3/workflows endpoint fine manually (on the swagger UI).
Thanks,
Brayn
Error: Server API (1614): Tool #683: Traceback (most recent call last):
File "...\AppData\Roaming\Python\Python38\site-packages\requests\models.py", line 971, in json
return complexjson.loads(self.text, **kwargs)
File "...\AppData\Local\Alteryx\bin\Miniconda3\envs\DesignerBaseTools_venv\lib\json\__init__.py", line 357, in loads
return _default_decoder.decode(s)
File "...\AppData\Local\Alteryx\bin\Miniconda3\envs\DesignerBaseTools_venv\lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "...\AppData\Local\Alteryx\bin\Miniconda3\envs\DesignerBaseTools_venv\lib\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 "...\AppData\Local\Temp\Engine_17560_99cf628b95f549fe8926860e95628bde_\9b9c93ceedd0d5646aa079ebe6bca81b\workbook.py", line 80, in <module>
token=token.json()
File "...\AppData\Roaming\Python\Python38\site-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)
Solved! Go to Solution.
@Brayndasilva 1) Probably you should first make sure all the python packages are installed. You probably should be able to see a workflow called PythonPackages_RunAsAdmin under Enterprise Utilities and make sure you run it to install all packages. 2) It might be helpful if you can upload a sample workflow so that people can see your configurations to make sure it is correct.
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 |