Infer Type Unreachable
I'm attempting to migrate from a self-hosted windmill instance to Windmill Cloud. I installed the wmill CLI and pulled the files from the self-hosted install; however, when I attempt to push the files in wmill Cloud, I get the attached error message:
error: Uncaught (in promise) Error: infer type unreachable
throw new Error("infer type unreachable");
^
at pushObj (https://deno.land/x/wmill@v1.226.1/types.ts:122:11)
at Command.push [as actionHandler] (https://deno.land/x/wmill@v1.226.1/sync.ts:762:15)
at eventLoopTick (ext:core/01_core.js:178:11)
at async Command.execute (https://deno.land/x/cliffy@v1.0.0-rc.2/command/command.ts:1948:7)
at async Command.parseCommand (https://deno.land/x/cliffy@v1.0.0-rc.2/command/command.ts:1780:14)
at async https://deno.land/x/wmill@v1.226.1/main.ts:133:3
A couple files were created on wmill Cloud but vast majority has not.
Please advise on how to best proceed
22 Replies
I noticed the pull/push doesn't seem to look at resource types, I'm assuming that might be the issue but not sure how to tackle it. I created one of the cusom resource types in the wmill Cloud instance but the CLI seems to be attempting to delete it and still errors out.
(I did manually create the resource types in wmill Cloud but the error persists)
The resource types were in the admin workspace, which is why they didn't get included in the pull. I pulled those separately from the admins workspace and put it in the original workspace but the error remains. Not sure what else to troubleshoot at this point
Apologies for the confusing error which i'm fixing in latest. There is one item that you're tring to sync whose path has an unrecognized ending
It looks like all the files that are being synced are either yaml, ts, or py
could you show me a tree of your folder
There are folders that have ".flow" at the end of their name, I wonder if that's the issue?
And yes, sure, one second
Sent via DM
can you try doing:
and then run that command again
I have improved the error message in an unreleased commit
The item f\Shopify\delete_products.flow\inline_script_0.inline_script.ts has an unrecognized type ending script
thanks, investigating
@humanz could you install once again and run it again ?
there is a case of paths we were not handling well on windows
Same issue
can you add --reload to the install command please
it's probably not actually pulling latest
Good call
Different error however: NotFound: The system cannot find the path specified. (os error 3): readfile 'f\Shopify\delete_products.flow\inline_script_0.inline_script.ts.flow\flow.yaml'
const localFlowRaw = await Deno.readTextFile(localFlowPath + "flow.yaml");
yeah you're missing the flow.yaml in all your flows, investigating
@humanz you didn't remove any flow.yaml by hand right ?
nope
could you do
wmill sync pull
on a fresh folder, and show me the logs and the tree again pleaseMy self-hosted version is v1.200.0-21-gd3dbb1881 but I'm not sure if that's the issue
unlikely to be the issue
actually
I think I fixed the issue with my previous fix but you needed to pull once again
so can you try pulling again please
the flow.yaml should appear
and then you should be gtg
I do see the flow.yaml now but it's not at the correct folder maybe?
Why is it not in correct folder ?
Yeah, the flow.yaml is at f\Shopify\delete_products.flow/flow.yaml
The error is: The system cannot find the path specified. (os error 3): readfile 'f\Shopify\delete_products.flow\inline_script_0.inline_script.ts.flow\flow.yaml'
It's using / instead of \ argh
Can you show me the logs of the pull please
Also just to be sure, could you attempt to do this on a fresh folder
Sure, one second
Sent via DM
For future reference: This is being fixed in a updated version of Wmill cli
(also this was specific to windows)