CookCLI
CookCLI copied to clipboard
`dir entry path not relative to base path` when pointing server to absolute recipe path
Hey there :)
Thanks for the awesome tool!
I've recently hit an error that I'm not sure what to do with.
If I start the cook server
and point it to a recipe directory in absolute format (/home/user/recipes
), then try to view a recipe in that folder, I get the following in the CLI:
TRACE Looking up 'Recipe'
thread 'tokio-runtime-worker' panicked at src/server/mod.rs:257:10:
dir entry path not relative to base path: StripPrefixError(())
I can see the full list of recipes on the frontend, but can't 'go into' any recipe. The frontend says "Something went wrong: Unexpected end of JSON input".
Please let me know if there is more info I can provide. There are some workarounds I can use, but it would be easier to just point at the abs path.
Good catch, that's definitely a bug, thanks for reporting!