Files
penpot/backend
Andrey Antukh 70030fa9e3 🐛 Fix download-image to properly handle network errors and non-2xx responses (#8554)
The download-image function in app.media silently succeeded when the
remote image URL was unreachable or returned an error status code,
causing create-file-media-object-from-url to report success with no
actual image stored.

Add exception handling for connection refused, timeouts, and I/O errors
around the HTTP request, and validate the HTTP status code in
parse-and-validate before processing the response body.

Fixes #8499

Signed-off-by: Andrey Antukh <niwi@niwi.nz>
2026-03-10 10:04:07 +01:00
..
2025-11-10 17:10:59 +01:00
2026-03-09 16:23:28 +01:00
2026-01-22 13:55:41 +01:00
2026-01-22 13:55:41 +01:00