Error running workflow with sample code

On behalf of @AI Dev (Conductor Slack):


I cloned this repo https://github.com/conductor-oss/conductor.git, and successfully ran Coductor on my local computer using docker.

I tried to run the workflow and used this sample code.

But I got the below error:

2024-10-27 20:48:27,207 [50399] conductor.client.automator.task_handler INFO     TaskHandler initialized
2024-10-27 20:48:27,207 [50399] conductor.client.automator.task_handler INFO     Starting worker processes...
2024-10-27 20:48:27,209 [50399] conductor.client.automator.task_handler INFO     Started 2 TaskRunner process
2024-10-27 20:48:27,209 [50399] conductor.client.automator.task_handler INFO     Started all processes
2024-10-27 20:48:27,217 [50399] conductor.client.automator.task_runner INFO     Polling task get_user_email with domain None with polling interval 0.1
2024-10-27 20:48:27,221 [50399] conductor.client.automator.task_runner INFO     Polling task send_email with domain None with polling interval 0.1
Traceback (most recent call last):
  File "/home/work/Work/workers/helloworld.py", line 55, in <module>
    main()
  File "/home/work/Work/workers/helloworld.py", line 48, in main
    workflow_run = workflow.execute(workflow_input={'userid': 'user_a'})
  File "/home/work/Work/workers/venv/lib/python3.10/site-packages/conductor/client/workflow/conductor_workflow.py", line 250, in execute
    run = self._executor.execute_workflow(request, wait_until_task_ref=wait_until_task_ref,
  File "/home/work/Work/workers/venv/lib/python3.10/site-packages/conductor/client/workflow/executor/workflow_executor.py", line 55, in execute_workflow
    return self.workflow_client.execute_workflow(
  File "/home/work/Work/workers/venv/lib/python3.10/site-packages/conductor/client/orkes/orkes_workflow_client.py", line 53, in execute_workflow
    return self.workflowResourceApi.execute_workflow(
  File "/home/work/Work/workers/venv/lib/python3.10/site-packages/conductor/client/http/api/workflow_resource_api.py", line 225, in execute_workflow
    (data) = self.execute_workflow_with_http_info(body, request_id, name, version, **kwargs)  # noqa: E501
  File "/home/work/Work/workers/venv/lib/python3.10/site-packages/conductor/client/http/api/workflow_resource_api.py", line 316, in execute_workflow_with_http_info
    return self.api_client.call_api(
  File "/home/work/Work/workers/venv/lib/python3.10/site-packages/conductor/client/http/api_client.py", line 333, in call_api
    return self.__call_api(resource_path, method,
  File "/home/work/Work/workers/venv/lib/python3.10/site-packages/conductor/client/http/api_client.py", line 68, in __call_api
    return self.__call_api_no_retry(
  File "/home/work/Work/workers/venv/lib/python3.10/site-packages/conductor/client/http/api_client.py", line 153, in __call_api_no_retry
    response_data = self.request(
  File "/home/work/Work/workers/venv/lib/python3.10/site-packages/conductor/client/http/api_client.py", line 378, in request
    return self.rest_client.POST(url,
  File "/home/work/Work/workers/venv/lib/python3.10/site-packages/conductor/client/http/rest.py", line 156, in POST
    return self.request("POST", url,
  File "/home/work/Work/workers/venv/lib/python3.10/site-packages/conductor/client/http/rest.py", line 115, in request
    raise ApiException(http_resp=r)
conductor.client.http.rest.ApiException: (404)
Reason: 
HTTP response headers: {'Vary': 'Origin, Access-Control-Request-Method, Access-Control-Request-Headers', 'Content-Type': 'application/json', 'Transfer-Encoding': 'chunked', 'Date': 'Mon, 28 Oct 2024 00:48:27 GMT', 'Keep-Alive': 'timeout=60', 'Connection': 'keep-alive'}
HTTP response body: {"status":404,"message":"No static resource api/workflow/execute/dynamic_workflow/1.","instance":"137c0b8ae5f7","retryable":false}