Item fails to import when image for file target fails to download

Created on 5 April 2020, almost 5 years ago
Updated 6 June 2024, 9 months ago

Problem/Motivation

When a file to import fails to download, the whole item does not get imported.

Steps to reproduce

  1. Create a feed type, map to a file target.
  2. Import the following (CSV) source (where "image" is mapped to the file target):
    title,image
    Lorem,https://www.example.com/non-existent.jpg
    

Current result:

Client error: `GET https://www.example.com/non-existent.jpg` resulted in a `404 Not Found` response

CSV: Failed importing 1 Article.

Proposed resolution

Add an option on the file target to ignore failed file downloads and log these as a warning instead.
Import the rest of the item.

Remaining tasks

User interface changes

API changes

Data model changes

Original report by ScorpionGhost

Failed importing 8 Products.

Client error: `GET https://api.skl-co.ru/files/3f/7c/BAS65SRi77_photo_photo_01.jpg` resulted in a `404 Not Found` response: 404 Not Found
404 Not Found


(truncated...)
Client error: `GET https://api.skl-co.ru/files/33/88/BAS65SLi77_photo_photo_01.jpg` resulted in a `404 Not Found` response: 404 Not Found
404 Not Found


(truncated...)
Client error: `GET https://api.skl-co.ru/files/49/f1/BAS65PRi77_photo_photo_01.jpg` resulted in a `404 Not Found` response: 404 Not Found
404 Not Found


(truncated...)
Client error: `GET https://api.skl-co.ru/files/f4/91/BAS65PLi77_photo_photo_01.jpg` resulted in a `404 Not Found` response: 404 Not Found
404 Not Found


(truncated...)
Client error: `GET https://api.skl-co.ru/files/e6/9c/BAS53S0i77_photo_photo_01.jpg` resulted in a `404 Not Found` response: 404 Not Found
404 Not Found


(truncated...)
Client error: `GET https://api.skl-co.ru/files/60/5c/BAS53P0i77_photo_photo_01.jpg` resulted in a `404 Not Found` response: 404 Not Found
404 Not Found


(truncated...)
Client error: `GET https://api.skl-co.ru/files/26/91/BAS51S0i77_photo_photo_01.jpg` resulted in a `404 Not Found` response: 404 Not Found
404 Not Found


(truncated...)
Client error: `GET https://api.skl-co.ru/files/6d/e4/BAS51P0i77_photo_photo_01.jpg` resulted in a `404 Not Found` response: 404 Not Found
404 Not Found


(truncated...)
🐛 Bug report
Status

Needs work

Component

Code

Created by

🇷🇺Russia ScorpionGhost

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024