Trevor SullivanT
Windmill3y ago
8 replies
Trevor Sullivan

Possible bug: Eval script keeps returning no input

if (!state.hasOwnProperty('active_namespace')) { return 'get pods --all-namespaces --output=json' } else { return `get pods --namespace ${state.active_namespace} --output=json`}


This code keeps returning no value as input to my Runnable backend script. It should return one string or the other.

Instead, my script gets no input, and throws the error:
The result keys are: error
ExecutionErr: ExitCode: 4, last log lines:
parse error: Invalid numeric literal at line 1, column 8
write /dev/stdout: broken pipe
image.png
image.png
Was this page helpful?