nextcloud / nextcloud/cookbook

Fail to download images

Open
#2,033 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Description
Images are unable to be downloaded. The images are correct and I have tried a few of them. They used to work and just stopped working randomly.

Reproduction
Steps to reproduce the behavior:

  1. Create a recipe with a valid image link
  2. Save

Expected behavior
Image downloads fine

Actual behavior
It times out with an error message

Logs
{"reqId":"Hk8vgNCkiP4RB2kqpLrM","level":3,"time":"2023-12-27T23:01:33-06:00","remoteAddr":"96.2.125.193","user":"hockeymikey","app":"PHP","method":"PUT","url":"/apps/cookbook/webapp/recipes/6053237","message":"file_get_contents(https://www.ketokeuhnnutrition.com/wp-content/uploads/2021/06/sliced-bread-loaf.jpg): Failed to open stream: Connection timed out at /var/lib/nextcloud/apps/cookbook/lib/Service/RecipeService.php#273","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0","version":"27.1.4.1","data":{"app":"PHP"}}

Browser
LibreWolf

Versions
Nextcloud server version: 27.1.4
Cookbook version: 0.10.5
Database system: MariaDB: 11.2.2

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

Start at cookbook/lib/Service/RecipeService.php line 273, where the logged file_get_contents timeout occurs, and reproduce the failure with a valid recipe image URL. Trace the image-download path and verify the behavior against the issue's expected outcome: valid images should download successfully instead of timing out.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.