WindmillWWindmill
Powered by
skvochS
Windmill•8mo ago•
2 replies
skvoch

Crash in wmill sync push – TypeError in sync.js due to undefined value.type

I'm running into an issue with the Windmill CLI when trying to push a sync with triggers included. After running:
wmill sync push --yes --include-triggers

I've got following output:
file:///opt/homebrew/lib/node_modules/windmill-cli/esm/sync.js:156
if (m.value.type == "rawscript") {
^

TypeError: Cannot read properties of undefined (reading 'type')
at file:///opt/homebrew/lib/node_modules/windmill-cli/esm/sync.js:156:21
at Array.flatMap (<anonymous>)
at extractInlineScriptsForFlows (file:///opt/homebrew/lib/node_modules/windmill-cli/esm/sync.js:152:20)
at Object.getChildren [as c] (file:///opt/homebrew/lib/node_modules/windmill-cli/esm/sync.js:328:47)
at async readDirRecursiveWithIgnore (file:///opt/homebrew/lib/node_modules/windmill-cli/esm/sync.js:511:26)
at async elementsToMap (file:///opt/homebrew/lib/node_modules/windmill-cli/esm/sync.js:532:22)
at async Promise.all (index 1)
at async compareDynFSElement (file:///opt/homebrew/lib/node_modules/windmill-cli/esm/sync.js:615:11)
at async Command.push [as actionHandler] (file:///opt/homebrew/lib/node_modules/windmill-cli/esm/sync.js:1137:21)
at async Command.execute (file:///opt/homebrew/lib/node_modules/windmill-cli/esm/deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/command.js:970:13)

I've done some debugging locally and have more details (including the full object that caused it), which I can share privately if helpful—just let me know.
Thanks for your support!
WindmillJoin
3,362Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements
Recent Announcements
henri-c

Weekly kenote to tell you about our latest updates https://discord.com/channels/930051556043276338/1278977038430240813 https://youtube.com/live/2dGd9TdT8xs?feature=share

henri-c · 4d ago

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 · 4w ago

Similar Threads

wmill sync push error
NaillikNNaillik / help
2y ago
What does `wmill sync push --stateful` do?
invakid404Iinvakid404 / help
2y ago
Error when running wmill sync pull due to temp dir?
sigcoreSsigcore / help
3y ago
wmill sync resource deletion
hkaderHhkader / help
14mo ago