-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Invalid value type in api response ['received_data']['status'] #7293
Comments
Thanks for reporting. Yes this is a known issue and I haven't got a chance to fix it yet. Feel free to submit a PR if you can locate that root cause. |
cc @flaviuvadan since you have fixed a similar issue in Hera. |
@66li try to submit it with: api_response = api_instance.workflow_service_create_workflow(
namespace='argo',
body=IoArgoprojWorkflowV1alpha1WorkflowCreateRequest(
workflow=manifest, _check_return_type=False)) |
Signed-off-by: Yuan Tang <[email protected]>
Just a quick heads up. I was demonstrating to someone and decided to run this code again, including the line:
But I received the same error as the original reporter. This is the example code from the repo:
To recreate, perhaps this script can help do it quickly:
I am hopeful there is simply a step I missed somewhere. |
@flaviuvadan Could you double-check on this when you start migrating to the new SDK? |
Hey @dixon1e! I think the call should be: api_response = api_instance.create_workflow(
namespace='argo',
body=IoArgoprojWorkflowV1alpha1WorkflowCreateRequest(workflow=manifest, _check_type=False), _check_return_type=False) The |
@flaviuvadan I will check ASAP. |
Great catch! I am fixing the examples in #7731. |
Confirmed moving the parameters to the correct call removes the error. The code we (@66li and I) used is the example code in the README, specifically argo-workflows/sdks/python/README.md. EDIT: I see @terrytangyuan has fixed the doco, well done. |
Great to hear. Thanks for spotting it @dixon1e and @flaviuvadan for taking a quick look! |
Summary
I tried to run the python-client example. used kubectl port-forward to forward the workflow port to the local. When I ran the following code, the workflow was successfully created but I got some errors.
The text was updated successfully, but these errors were encountered: