zyra / ionic-image-loader

Ionic 2+ Component that loads images in a background thread and caches them for later use
MIT License
436 stars 137 forks source link

Http failure response for (URL): 0 Unknown Error #274

Open azamalvi opened 4 years ago

azamalvi commented 4 years ago

I am using this in my ionic 4 app. I have setup CORS on my back-end (PHP) that's why all API's are running fine. Only issue is with the image src. It throws and error

[console.log]: "error" {
   "headers": {
     "normalizedNames": {},
     "lazyUpdate": null,
     "headers": {}
   },
   "status": 0,
]   "statusText": "Unknown Error",
   "url": "https://xyz.com/images/1572511537.jpg",
   "ok": false,
   "name": "HttpErrorResponse",
   "message": "Http failure response for https://xyz.com/images/1572511537.jpg: 0 Unknown Error",
   "error": {
     "isTrusted": true
   }

It is working fine on local. Not working when run on Android mobile with liver server. I do not want to remove this as this is good for cache image. Anyone can help me. Thanks.

azamalvi commented 4 years ago

should I delete this if there is no solution for this issue?

samuelfaj commented 4 years ago

Same problem here. Using AWS S3.

mhn-consulting commented 4 years ago

Same problem here - with Google Cloud/Firebase