WindmillWWindmill
Powered by
EntVlE
Windmill•14mo ago•
4 replies
EntVl

Failed to find relative import

We have self-hosted Windmill server. After server was restarted, we've found that every flow is broken. All relative imports inside the flow don't work with errors like:
"ExecutionErr: ExitCode: 1, last log lines:
job=0193d931-9e95-c35d-f240-6e7ad9ffba22 tag=bun worker=wk-default-e968bb332c80-uXFG1 hostname=e968bb332c80

error: Failed to find relative import at http://127.0.0.1:34291/api/w/uat/scripts/raw_unpinned/p/tmp/main/../../../profit4/getProductIdBySku.ts
at /tmp/windmill/wk-default-e968bb332c80-uXFG1/profit4/getProductIdBySku.ts.url:1:0".

Whenewher when we are trying to run this flow in edit mode, everything works fine, running sepparate script works well also. So, the problem exists only when flow is run mannualy or via some trigger.
We are using relative imports like: "import { main as getCountryId} from "../../profit4/getCountryId".
Language: "Bun".

Can you please help us with understanding what goes wrong? We've tried to restart and re-create winmill server, we've tried to re-create metadata using "wmill script generate-metadata", but nothing helped...
WindmillJoin
3,362Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?
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

Failed to import Python Libaries
LeandroLLeandro / help
15mo ago
wmill sync not bundling relative imports
NackiNNacki / help
7mo ago
Relative imported module doesn't respect optional/non-imported Python dependencies
fr3fouFfr3fou / help
16mo ago
No arguments passed to main when relative imports in VSCode Preview
bembleBbemble / help
11mo ago