Skip to content

fix: can't create recipe if image URL is invalid or can't be loaded - #1147

Open
Bnyro wants to merge 2 commits into
TomBursch:mainfrom
Bnyro:import-recipe-image
Open

Bnyro wants to merge 2 commits into
TomBursch:mainfrom
Bnyro:import-recipe-image

Conversation

@Bnyro

@Bnyro Bnyro commented Sep 2, 2026

Copy link
Copy Markdown

Hey, first of all, thanks for working on this app! We've been using it for 3 years now and it's really a lifesaver :)

I noticed that adding recipes fails if the image URL is a relative path. E.g., the thumbnailUrl field of https://schema.org/Recipe is just /example.jpg instead of a full URL. However, according to https://schema.org/url, URLs may be relative, so this is a bug in KitchenOwl that it can't handle relative URLs.

To reproduce:

I additionally wrapped the image loading call into a try except because I think that the recipe should still import fine even if the image can't be loaded (i.e. the image URL doesn't resolve). Might be good to show a warning to the user that the app failed to load the image, but I think that'd be too complex to implement.

Cheers

@Bnyro
Bnyro force-pushed the import-recipe-image branch from 44fccc1 to 1225f32 Compare September 2, 2026 18:00

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant