WindmillWWindmill
Powered by
BravoB
Windmill•16mo ago•
9 replies
Bravo

Running a script fails when executed in a flow

Script works well when executed by itself but when I try to run it in a flow it fails: 
{
    "error": {
        "name": "ExecutionErr",
        "message": "ExitCode: 1, last log lines:\nODE EXECUTION ---\n\n\nwrote cached binary: /tmp/windmill/cache/bun/9e46268582653fcee6abef94b9c2ca052e4f08b82fde866ca9a4e9a337274bf5 (backed by EE distributed object store: false)\n\n\nerror: Cannot find module \"./Hero\" from \"/tmp/windmill/wk-default-7a435c2e53e7-BOW6c/0193269f-eaad-2526-a510-26edd041e261/main.js\"\nnote: missing sourcemaps for /tmp/windmill/wk-default-7a435c2e53e7-BOW6c/0193269f-eaad-2526-a510-26edd041e261/main.js\nnote: consider bundling with '--sourcemap' to get unminified traces\n\nBun v1.1.32 (Linux x64 baseline)",
        "step_id": "c"
    }
}
Script works well when executed by itself but when I try to run it in a flow it fails: 
{
    "error": {
        "name": "ExecutionErr",
        "message": "ExitCode: 1, last log lines:\nODE EXECUTION ---\n\n\nwrote cached binary: /tmp/windmill/cache/bun/9e46268582653fcee6abef94b9c2ca052e4f08b82fde866ca9a4e9a337274bf5 (backed by EE distributed object store: false)\n\n\nerror: Cannot find module \"./Hero\" from \"/tmp/windmill/wk-default-7a435c2e53e7-BOW6c/0193269f-eaad-2526-a510-26edd041e261/main.js\"\nnote: missing sourcemaps for /tmp/windmill/wk-default-7a435c2e53e7-BOW6c/0193269f-eaad-2526-a510-26edd041e261/main.js\nnote: consider bundling with '--sourcemap' to get unminified traces\n\nBun v1.1.32 (Linux x64 baseline)",
        "step_id": "c"
    }
}


This line in my script seems to cause issues:
const Hero = require('@ulixee/hero');
const Hero = require('@ulixee/hero');
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

Accessing logs of flows executed from a script
ShenanigansSShenanigans / help
9mo ago
Bug: Operator automated logout when opening a script/flow
NeitNNeit / help
3mo ago
Single script with long running loop vs flow loop feature
benBben / help
4w ago
Execute a script for each flow run
DaanDDaan / help
15mo ago