EntVl
Flow can't be save
Hello, we're making changes in flow and trying to save it, as a result, we`re receiving next error:
The flow could not be saved: Internal: /windmill/windmill-queue/src/jobs.rs:3221:34: 49: Flow version not found
Recreating flow doesn't help. Any ideas on this?
2 replies
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...
5 replies
Output is wrapped in a promise
Hello, I have a flow with scripts in it. The problem is that one of the scripts behaves differently from the others. It returns an object, but when I try to access this object in an
if
statement (or just pass it to another inline script), I can't access its attributes because the entire object is wrapped in a promise. Before returning this object, it's definitely a regular JavaScript object, but after returning, it gets wrapped. What could be wrong?1 replies