Skip to content
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

import recipe from json not working #466

Open
jjauzion opened this issue Jan 6, 2024 · 0 comments
Open

import recipe from json not working #466

jjauzion opened this issue Jan 6, 2024 · 0 comments

Comments

@jjauzion
Copy link

jjauzion commented Jan 6, 2024

I'm trying to import recipe from a json file and it doesn't work.

I tried to export an existing recipe so I get a the valid json format Tandoor is using, then I copy paste the json into the import field in Tandoor (Import Recipe > Source) but it doesn't work neither.

Here is an example of a json file I exported (so good json format) and I can't import it into Tandoor.
I have this error in the logs:

Jan 06 15:13:37Traceback (most recent call last):
Jan 06 15:13:37File "/app/code/tandoor/cookbook/helper/recipe_url_import.py", line 203, in get_from_scraper
Jan 06 15:13:37recipe_json['properties'] = get_recipe_properties(request.space, scrape.schema.nutrients())
Jan 06 15:13:37File "/app/code/.venv/lib/python3.10/site-packages/recipe_scrapers/_schemaorg.py", line 208, in nutrients
Jan 06 15:13:37for key, val in nutrients.copy().items():
Jan 06 15:13:37AttributeError: 'NoneType' object has no attribute 'copy'

Any idea ? Is there something I'm doing wrong ?

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

No branches or pull requests

1 participant