conductor-python icon indicating copy to clipboard operation
conductor-python copied to clipboard

Sample helloworld application not able to execute the workflow

Open anandthegreat opened this issue 6 months ago • 4 comments

The sample helloworld application is able to create the greetings workflow, but throws "404: No static resource api/workflow/execute/greetings/1" while executing:

2025-07-01 08:23:15,122 [74067] conductor.client.automator.task_handler INFO     created worker with name=greet and domain=None
2025-07-01 08:23:15,122 [74067] conductor.client.automator.task_handler INFO     TaskHandler initialized
2025-07-01 08:23:15,122 [74067] conductor.client.automator.task_handler INFO     Starting worker processes...
2025-07-01 08:23:15,123 [74067] conductor.client.automator.task_handler INFO     Started 1 TaskRunner process
2025-07-01 08:23:15,123 [74067] conductor.client.automator.task_handler INFO     Started all processes
2025-07-01 08:23:15,124 [74067] conductor.client.automator.task_runner INFO     Polling task greet with domain None with polling interval 0.1
Traceback (most recent call last):
  File "/Users/anand/Desktop/conductor-python-sdk/helloworld.py", line 38, in <module>
    main()
  File "/Users/anand/Desktop/conductor-python-sdk/helloworld.py", line 30, in main
    workflow_run = workflow_executor.execute(name=workflow.name, version=workflow.version, workflow_input={'name': 'Anand'})
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/conductor/client/workflow/executor/workflow_executor.py", line 79, in execute
    return self.workflow_client.execute_workflow(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/conductor/client/orkes/orkes_workflow_client.py", line 53, in execute_workflow
    return self.workflowResourceApi.execute_workflow(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/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 "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/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 "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/conductor/client/http/api_client.py", line 337, in call_api
    return self.__call_api(resource_path, method,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/conductor/client/http/api_client.py", line 68, in __call_api
    return self.__call_api_no_retry(
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/conductor/client/http/api_client.py", line 153, in __call_api_no_retry
    response_data = self.request(
                    ^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/conductor/client/http/api_client.py", line 382, in request
    return self.rest_client.POST(url,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/conductor/client/http/rest.py", line 156, in POST
    return self.request("POST", url,
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/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': 'Tue, 01 Jul 2025 02:53:13 GMT', 'Keep-Alive': 'timeout=60', 'Connection': 'keep-alive'}
HTTP response body: {"status":404,"message":"No static resource api/workflow/execute/greetings/1.","instance":"f89803fb6888","retryable":false}

anandthegreat avatar Jul 01 '25 02:07 anandthegreat

Hi @anandthegreat

Thanks for reporting this issue! To help us investigate, could you please share:

  1. The version of the conductor-python library you're using
  2. The version of Conductor you're running

IgorChvyrov-sm avatar Jul 16 '25 14:07 IgorChvyrov-sm

Hi @IgorChvyrov-sm,

  1. conductor-python==1.1.10
  2. I'm starting conductor with docker compose docker compose -f docker/docker-compose.yaml up

anandthegreat avatar Jul 19 '25 07:07 anandthegreat

Hi @anandthegreat

I’m currently looking into this issue and will get back to you soon with an update. Thanks for your patience!

IgorChvyrov-sm avatar Jul 21 '25 15:07 IgorChvyrov-sm

Hi @anandthegreat

Thank you for your patience! Please try running Conductor using the Docker image from the README: docker run --init -p 8080:8080 -p 5000:5000 conductoross/conductor-standalone:3.15.0

Let us know if you encounter any issues!

IgorChvyrov-sm avatar Jul 22 '25 08:07 IgorChvyrov-sm