cookbook icon indicating copy to clipboard operation
cookbook copied to clipboard

No parser found for given import

Open smokinjo opened this issue 1 year ago • 15 comments

Description A clear and concise description of what the bug is.

Reproduction Steps to reproduce the behavior: I try to import recipes and I get the following error each time: No parser found for given import

Expected behavior I am moving my recipes from one install to another.

I tried copying th efiles over, but when rescanning, cookbook sees none of the recipes.

So, I was going to copy them over 1 recipe at a time. But, they would not import.

Browser Which browser are you using? firefox

Versions Nextcloud server version: 26.00 Cookbook version: 0.10.2 Database system: MariaDB


Depends on #1675

smokinjo avatar May 28 '23 12:05 smokinjo

So, what website are you trying to import from? Without the concrete website URL that is failing, I have no chance to track the import issues down.

However, if you write, you want to migrate from one server to another, I suspect there is a misunderstanding about the term import. The import allows to save recipes in the www that support JSON-based metadata called schema.org. It does currently not allow to import from a JSON directly (#1671).

Normally, it should be sufficient to move the recipe folder from the old machine to the new machine and set the recipe folder in the settings accordingly. The rescan should detect all present recipes and index them in the database (making them visible in the web UI). Are you sure, you have the correct path of the recipe folder configured in the new instance (there is a localization, so it might be just your mother language)?

christianlupus avatar May 29 '23 16:05 christianlupus

Thanks for reply to my problem.

I can find some examples, of course. Here they are: https://www.kingarthurbaking.com/recipes/100-whole-wheat-bread-for-the-bread-machine-recipe https://www.skinnytaste.com/blueberry-banana-bread/

The thing is that these recipes were able to be imported into my older install of nextcloud. So,my problem does not have to do with is it possible. It is. My issue is, why can I not import that on my new one?

I understand your comment about rescanning the folder with the recipes in them, copied from the older NC. I scanned them since the system did nto see them right away. I've rescanned them many times.

What might be causing my two issues for 2 tasks that should work.

Thanks

Joseph

smokinjo avatar May 30 '23 01:05 smokinjo

i have pretty much the same setup as Joseph and the same issue on previous versions of nextcloud i could grab pretty much any recipe now it gives parser not found on 90% of the sites. example: https://cafedelites.com/mongolian-glazed-meatballs/

latumus avatar Jun 11 '23 06:06 latumus

actually i think my problem is different seeing he's importing im just trying to add a recipe

latumus avatar Jun 11 '23 06:06 latumus

Hello,

I am trying to both: 1 - add a new recipe 2 - import my old recipes by placing them in the recipe folder on the new NC server

I'm still looking for possible reason and away to fix:)

Thanks

smokinjo avatar Jun 16 '23 02:06 smokinjo

This is a me too. I'm trying to import from this link (Download recipe from this URL): https://www.indianhealthyrecipes.com/palak-paneer-recipe-easy-paneer-recipes-step-by-step-pics/#wprm-recipe-container-38742

Tried in Chrome and Vivaldi - both throw: No parser found for given import.

dezertdezine avatar Jun 16 '23 05:06 dezertdezine

This is most probably a duplicate of #1675. ~~All examples i tested in this issue were caused by the missing part support.~~ All examples i tested from this issue were failing due to the fact that the parser is not capable of resolving arbitrary JSON object graphs.

I am closing this here, therefore. If the issue persists after fixing #1675, we can reopen it.

christianlupus avatar Jun 20 '23 20:06 christianlupus

@christianlupus what is meant by "missing part support"?

dezertdezine avatar Jun 21 '23 07:06 dezertdezine

@dezertdezine i updated my comment to make it more clear. Is this sufficient for you ATM?

christianlupus avatar Jun 21 '23 23:06 christianlupus

@christianlupus yes, and thank you for the clarification - now I understand :)

dezertdezine avatar Jun 22 '23 04:06 dezertdezine

Got the error with the following recipes:

https://www.foodrepublic.com/recipes/make-german-pretzel-buns/ https://addapinch.com/the-best-chocolate-cake-recipe-ever/ https://cafedelites.com/best-fluffy-pancakes/ https://becs-table.com.au/recipe-for-tim-tams/ https://www.kingarthurbaking.com/recipes/japanese-milk-bread-rolls-recipe https://www.recipetineats.com/anzac-biscuits-golden-oatmeal-cookies/

rb-26 avatar Aug 21 '23 04:08 rb-26

This Recipe also fails: https://babyled-weaning.de/rezepte/kuerbis-curry-mit-kichererbsen/

TheMBeat avatar Aug 28 '23 17:08 TheMBeat

This recipe fails: https://damndelicious.net/2015/02/21/slow-cooker-korean-beef/

molohov avatar Oct 30 '23 22:10 molohov

Guys, this issue is closed. Song more links here will not help much as they tend to get forgotten. I will mark it as dependent and reopen for now. In the future, please open new issues.

christianlupus avatar Oct 31 '23 06:10 christianlupus

This PR/issue depends on:

github-actions[bot] avatar Oct 31 '23 06:10 github-actions[bot]