-
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
nil pointer error in /api/v1/workflow-templates/{namespace}/lint
#13190
Comments
/api/v1/workflow-templates/{namespace}/lint
Follow-up from this Slack thread. I also edited your content to expand the attachments and convert newlines etc so that they're readable at a glance |
corresponds to this line: argo-workflows/util/labels/labeler.go Line 24 in dc6a18d
so backtrace: argo-workflows/util/instanceid/service.go Line 35 in dc6a18d
meaning then generated code and some handlers |
Ah I see the problem, the API schema wraps around the So that is an invalid request. But it shouldn't have a nil pointer, it should return a 400 error |
We might just be able to add |
Pre-requisites
:latest
image tag (i.e.quay.io/argoproj/workflow-controller:latest
) and can confirm the issue still exists on:latest
. If not, I have explained why, in detail, in my description below.What happened/what did you expect to happen?
I was able to run
argo lint
on a file that successfully validated. When I tried the swagger endpoint/api/v1/workflow-templates/{namespace}/lint
using the same json, it returned an error:See json and stacktrace below
Version
v3.5.7
Paste a small workflow that reproduces the issue. We must be able to run the workflow; don't enter a workflows that uses private images.
WorkflowTemplate JSON
Logs from the workflow
controllerserverlogs from the argo server
kubectl logs -n argo deploy/argo-server
attached in the file serverlog.txt
stacktrace from logs:
Logs from in your workflow's wait container
The text was updated successfully, but these errors were encountered: