I discovered a crash today when trying to cache a page that contain an iframe (Youtube video). I get that message in the log :
WARNING: Unable to get the path from the request: <NSURLRequest: 0x154dd4750> { URL: data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAADGCAYAAAAT+OqFAAAAdklEQVQoz42QQQ7AIAgEF/T/D+kbq/RWAlnQyyazA4aoAB4FsB ... rkJggg== }
I figured out that the code was not able to define a path in storagePathForRequest:rootPath as request.URL, in this case, is nil.
So I made a workaround to prevent my app from crashing by making sure localUrl is not nil here : https://github.com/nartex/EVURLCache/tree/nicolas255-patch-1
I think that it should be handled better if possible but I have no idea how to to do that.
Hi there,
I discovered a crash today when trying to cache a page that contain an iframe (Youtube video). I get that message in the log :
WARNING: Unable to get the path from the request: <NSURLRequest: 0x154dd4750> { URL: data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAADGCAYAAAAT+OqFAAAAdklEQVQoz42QQQ7AIAgEF/T/D+kbq/RWAlnQyyazA4aoAB4FsB ... rkJggg== }
I figured out that the code was not able to define a path in
storagePathForRequest:rootPath
asrequest.URL
, in this case, is nil.So I made a workaround to prevent my app from crashing by making sure
localUrl
is not nil here : https://github.com/nartex/EVURLCache/tree/nicolas255-patch-1 I think that it should be handled better if possible but I have no idea how to to do that.