CookCLI icon indicating copy to clipboard operation
CookCLI copied to clipboard

`dir entry path not relative to base path` when pointing server to absolute recipe path

Open SkepticMystic opened this issue 1 year ago • 1 comments

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.

SkepticMystic avatar Feb 28 '24 11:02 SkepticMystic

Good catch, that's definitely a bug, thanks for reporting!

dubadub avatar Feb 28 '24 21:02 dubadub