404 responses are still written to the cache
@michalkcloudinay arbeitet bereits daran.
Seit 15.3.2021.
Bewertung
Dieses Issue wurde noch nicht bewertet.
Beschreibung
Bug report for Cloudinary iOS SDK
Before proceeding, please update to latest version and test if the issue persists
Describe the bug in a sentence or two.
When the cloudinary URL request fails with a 404, the downloadImageAndCacheIt function still attempts to write a 0 byte file to the cache.
Issue Type (Can be multiple)
[ ] Build - Can’t install or import the SDK
[ ] Performance - Performance issues
[x] Behaviour - Functions aren’t working as expected (Such as generate URL)
[ ] Documentation - Inconsistency between the docs and behaviour
[ ] Other (Specify)
Steps to reproduce
Simply call CLDDownloader.fetchImage(_:_:completionHandler:) with an invalid URL.
Error screenshots or Stack Trace (if applicable)
The following error is raised:
{
"error_code" = "-7001";
"error_domain" = "com.cloudinary.error";
"user_info" = {
NSLocalizedFailureReason = "Failed creating an image from the received data.";
};
There was no received data.

Build/Dependency management
[x] Cocoa-Pods
[ ] Carthage
[ ] Manual import
[ ] Other (Specify)
Is the issue reproducible only on a specific device?
[x] No
[ ] Yes (specify model + iOS version)
Versions and Libraries (fill in the version numbers)
iOS Cloudinary SDK version - 2.9.0
OSX (on the dev environment) - 10.15.6 (19G73)
XCode - 12.1 (12A7403)
Swift - 5
Target iOS - 14.1
- Vorherrschende Sprache
- Swift
- Sterne
- 169
- Forks
- 107
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Kein Beitragsleitfaden
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus cloudinary/cloudinary_ios
-
Memory Leaks and Retain Cycles while using Upload with Cloudinary SDKEvtl. wieder frei @adimiz1 hat das vor 713 Tagen übernommen, und es ist kein Pull Request offen. Offen
cloudinary/cloudinary_ios#441 · 1 Kommentar · 1 zugewiesene Person ·
-
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 20/100
cloudinary/cloudinary_ios#439 ·
-
Add MD5-Header option to CLDUploadRequestParamsEvtl. wieder frei @adimiz1 hat das vor 1458 Tagen übernommen, und es ist kein Pull Request offen. Offen
cloudinary/cloudinary_ios#390 · 1 Kommentar · 1 zugewiesene Person ·
-
Unable to upload photo, uploadPrefix, unrecognized selectorEvtl. wieder frei @adimiz1 hat das vor 1266 Tagen übernommen, und es ist kein Pull Request offen. Offenbug
cloudinary/cloudinary_ios#369 · 2 Kommentare · 1 zugewiesene Person ·
-
Does not compile for tvOSEvtl. wieder frei @GiniAppsPartners hat das vor 2026 Tagen übernommen, und es ist kein Pull Request offen. Offen
cloudinary/cloudinary_ios#337 · 1 Kommentar · 2 zugewiesene Personen ·
Alle Issues in cloudinary/cloudinary_ios
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
vorssaint/vorssaint-utils#4162 ·
Maintainer antworten meist innerhalb von 2 Tagen
-
cua-driver diagnose: one-line help says "install and permission report", which is macOS-specificOffen
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 78/100
Maintainer antworten meist innerhalb von 1 Tag
-
Opening PortKiller force-kills every cloudflared quick tunnel on the machine, not just its ownEvtl. vergeben @widechaos hat das heute übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
productdevbook/port-killer#131 ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
Maintainer antworten meist innerhalb von 1 Tag
-
easy
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
Maintainer antworten meist innerhalb von 5 Tagen