Don't let the whole migration crash on a download failure

Created on 9 November 2016, over 7 years ago
Updated 22 April 2024, 2 months ago

Problem/Motivation

The 'download' plugin uses Guzzle client to get the file via HTTP request. If one single request fails, due some reasons (404, timeout, non existent host, etc), the whole migration is crashing with an exception. As the other rows make valid HTTP requests, is expected that other rows are imported.

Proposed resolution

Catch the Guzzle exception and throw a MigrateException that logs also some details about failed URL.

Remaining tasks

None.

User interface changes

None.

API changes

None.

Data model changes

None.

πŸ› Bug report
Status

Fixed

Version

8.2 ⚰️

Component
MigrationΒ  β†’

Last updated 2 days ago

Created by

πŸ‡·πŸ‡΄Romania claudiu.cristea Arad πŸ‡·πŸ‡΄

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.69.0 2024