nextcloud / nextcloud/cookbook

allrecipies.com can no longer be imported

Open
#3,033 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
HTML
Stars
641
Forks
113
Avg merge
21h 31m
Merged PRs (30d)
26

Description

Description
Earlier versions of the cookbook app perfectly imported all recipe data from the website https://www.allrecipes.com
Cookbook version 0.11.6 now reports the following error:

Download from https://www.allrecipes.com/creamy-cajun-pasta-recipe-11892221 failed as HTTP status code 402 is not in expected range.

https://www.foodnetwork.com/recipes/giada-de-laurentiis/chicken-florentine-style-recipe-1942850 reports HTTP error 403
https://insanelygoodrecipes.com/chicken-schnitzel-with-noodles/ reports HTTP error 403

Some other recipe sites work well

  1. https://www.tasteofhome.com/recipes/contest-winning-broccoli-chicken-casserole/

Reproduction
Steps to reproduce the behavior:

  1. Go to https://www.allrecipes.com/creamy-cajun-pasta-recipe-11892221
  2. copy the URL
  3. switch to the cookbook app and paste the URL in the "Download recipe from URL" box
  4. See error

Expected behavior
Previous versions imported all the recipe data perfectly including the image, and nutritional data

Actual behavior
A HTTP stat code 402 is displayed and the recipe is not imported

Screenshots

Image

Browser
Firefox 14.0 64bit

Versions
Nextcloud server version: Nextcloud Hub 26 Winter (33.0.0)
Cookbook version: 0.11.6
Database system: MariaDB

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the URL import in the Cookbook app with the listed Allrecipes, Food Network, and Insanely Good Recipes URLs, comparing them with the working Taste of Home example. Start by tracing the URL download and HTTP-status handling; done means the affected recipe sites import their recipe, image, and nutritional data without the reported 402 or 403 errors.

Written by the indexing model from the issue text.

Assessment

Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.