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

cannot add any recipes — adding a recipe produces error #39

Open
mleimbach-beeclever opened this issue Jul 16, 2022 · 4 comments
Open

Comments

@mleimbach-beeclever
Copy link

Steps to reproduce:

  • klicking add recipe
  • entering url
  • error "steps.map is not a function" is shown in frontend

error in docker below

recipe-buddy-mongo-1 | {"t":{"$date":"2022-07-16T13:59:26.187+00:00"},"s":"I", "c":"NETWORK", "id":51800, "ctx":"conn4","msg":"client metadata","attr":{"remote":"172.18.0.3:45724","client":"conn4","doc":{"driver":{"name":"nodejs|Mongoose","version":"4.5.0"},"os":{"type":"Linux","name":"linux","architecture":"x64","version":"5.10.104-linuxkit"},"platform":"Node.js v16.15.0, LE (unified)","version":"4.5.0|6.3.1"}}} recipe-buddy-backend-1 | TypeError: steps.map is not a function recipe-buddy-backend-1 | at RecipeScraper.parseRecipeSteps (/dist/recipes/scraper/recipeScraper.js:23:22) recipe-buddy-backend-1 | at RecipeScraper.hydrateRecipe (/dist/recipes/scraper/recipeScraper.js:92:33) recipe-buddy-backend-1 | at processTicksAndRejections (node:internal/process/task_queues:96:5) recipe-buddy-backend-1 | at async RecipesService.create (/dist/recipes/recipes.service.js:27:24) recipe-buddy-backend-1 | at async /node_modules/@nestjs/core/router/router-execution-context.js:46:28 recipe-buddy-backend-1 | at async /node_modules/@nestjs/core/router/router-proxy.js:9:17

@georgegebbett
Copy link
Owner

Interesting - does this happen with every recipe? Can you try with the URL https://www.bbcgoodfood.com/recipes/gnocchi-herb-sauce and if that works could you let me know the recipe URL you are using?

@mleimbach-beeclever
Copy link
Author

the provided url does work fine.

i tried several urls from chefkoch.de
like:
https://www.chefkoch.de/rezepte/291451108168834/Nudelsalat-auf-italienisch.html
I had a look at their schema.org data and it seems to be populated, but the "mapping" within r-b is throwing the described error.

@georgegebbett
Copy link
Owner

Yes - it looks as though they are populating all of the steps in the recipeInstructions field rather than one by one in the recipeSteps. I'll have a think about the best way to solve this over the weekend.

@Latschenharry
Copy link

Having the same issue

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

3 participants