-
-
Notifications
You must be signed in to change notification settings - Fork 610
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to import recipe from JSON source #2426
Comments
its something that usually comes with a recipe when its imported, need to implement a check if it comes from json so its not requested. thanks for the good report |
I can see in the release notes for v1.4.12 a mention of a fix for an issue that sounds similar to this, does that mean this is fixed? |
yes, i just did not see that this issue exists, thansk for pointing it out. |
@vabene1111 I just updated to v1.5.0 and using the same JSON recipe as the initial report now fails with a different error message. There's no traceback, and the {"name":["This field may not be blank."]} Is this just a new message for the same issue or a new problem? EDIT: I've tested a bit more and the same JSON recipe will fail to import when imported using the Import Recipe -> Source option, but will work when added to a ZIP and imported using the "Nextcloud Cookbooks" import type. |
intersting, i dont get an error but it does not load any data from your json, need to take a look at that, might have changed something that broke this again. |
i am not sure exactly but i can import this json without any problems need to look into why yours above is not working but in the end we likely need to fix this in because we use their text scraper and it does not return anything on your input https://github.com/hhursev/recipe-scrapers
|
ok its your json is missing the
line, I will an additonal check to add this exact type hint if nothign is given since this should be everything people post to the endpoint anyway. |
Oh that's a good spot, I didn't even think of the top-level schema specification, but adding that does import perfectly. |
auto adding these in the next release |
Tandoor Version
1.4.8
Setup
Docker / Docker-Compose
Reverse Proxy
Traefik
Other
No response
Bug description
Attempting to import a recipe with the following JSON results in an error, although the recipe seems to be well-formed from a check agains the JSON Recipe schema on schema.org. The import is being attempted from the Source tab of the Import Recipe page.
Recipe JSON
The logs indicate a key error when updating the
source_url
property of the JSON, which confuses me since that's not a known property of the Recipe schema. Does the recipe JSON need to be embedded into a HTML page to be imported?Relevant logs
The text was updated successfully, but these errors were encountered: