WindmillWWindmill
Powered by
Trevor SullivanT
Windmill•3y 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`}
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
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
WindmillJoin
3,342Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements
Recent Announcements
Pyra

### HTTP tracing (EE) Capture HTTP requests made by job scripts as observability spans Features: - View HTTP request traces (method, URL, status, timing) in the job details UI - Auto-instrumentation for Native TypeScript, MITM proxy for other languages - Integrates with external OpenTelemetry collectors changelog: https://www.windmill.dev/changelog/http-tracing docs: https://www.windmill.dev/docs/advanced/instance_settings#http-tracing Additionally jobs memory metrics are now fully OSS!

Pyra · 2w ago

henri-c

First keynote of the year here https://discord.com/channels/930051556043276338/1278977038430240813 🙂

henri-c · 3w ago

rubenf

Have you ever thought, webIDE is cool and all but it will never replace my local debugger? Hold my beer **Full debugger for bun and python in 1.606.1** Works in script editor, flow editor, and raw app editor. In addition, Windmill-multiplayer, lsp and the new debugger have been merged in a single service windmill-extra Debugger is in beta, feel free to send us feedback about it

rubenf · 4w ago

Similar Threads

how to accept oauth resource as script input
BertPBBertP / help
4mo ago
Using Types as Inputs to Script
rothnicRrothnic / help
9mo ago
No logs when triggering script with curl
frosted_scribeFfrosted_scribe / help
15mo ago
Bug: Operator automated logout when opening a script/flow
NeitNNeit / help
3mo ago