{"action":"created","issue":{"url":"https://api.github.com/repos/soffes/ssziparchive/issues/128","labels_url":"https://api.github.com/repos/soffes/ssziparchive/issues/128/labels{/name}","comments_url":"https://api.github.com/repos/soffes/ssziparchive/issues/128/comments","events_url":"https://api.github.com/repos/soffes/ssziparchive/issues/128/events","html_url":"https://github.com/soffes/ssziparchive/issues/128","id":63067531,"number":128,"title":"Unable to unzip file (Cocoa error code 4.)","user":{"login":"BillCI","id":1874357,"avatar_url":"https://avatars.githubusercontent.com/u/1874357?v=3","gravatar_id":"","url":"https://api.github.com/users/BillCI","html_url":"https://github.com/BillCI","followers_url":"https://api.github.com/users/BillCI/followers","following_url":"https://api.github.com/users/BillCI/following{/other_user}","gists_url":"https://api.github.com/users/BillCI/gists{/gist_id}","starred_url":"https://api.github.com/users/BillCI/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BillCI/subscriptions","organizations_url":"https://api.github.com/users/BillCI/orgs","repos_url":"https://api.github.com/users/BillCI/repos","events_url":"https://api.github.com/users/BillCI/events{/privacy}","received_events_url":"https://api.github.com/users/BillCI/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/soffes/ssziparchive/labels/Bug","name":"Bug","color":"e10c02"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-19T19:08:18Z","updated_at":"2015-04-06T22:45:04Z","closed_at":null,"body":"So All was working great then suddenly it stopped unzipping the files and the error codes don't really help me know what I'm doing wrong (see bellow).  Any suggestion on where I might be going wrongs is useful.  The zip file that gets uploaded to an s3 bucket is created using SSZipArchive and may be large as it is a number of photos and a mp4 file.\r\n\r\n```\r\n2015-03-19 11:23:42.968 steve-and-kates-camp[343:88698] File downloaded to: /var/mobile/Containers/Data/Application/AF35A19D-1650-4067-9EFC-877903607FD4/Documents/TempFiles/33623/camper_33623_save_file.zip\r\n2015-03-19 11:23:42.970 steve-and-kates-camp[343:88698] Error: failed to open zip file\r\n2015-03-19 11:23:42.972 steve-and-kates-camp[343:88698] Failed to delete zip file at: /var/mobile/Containers/Data/Application/AF35A19D-1650-4067-9EFC-877903607FD4/Documents/TempFiles/33623/camper_33623_save_file.zip\r\n2015-03-19 11:23:42.978 steve-and-kates-camp[343:88698] Error: The operation couldn’t be completed. (Cocoa error 4.)\r\n```\r\n\r\n\r\nHere is the code.\r\n\r\n```objectivec\r\n- (void)downloadSavedProject\r\n{\r\n    NSURLSessionConfiguration *configuration = [NSURLSessionConfiguration defaultSessionConfiguration];\r\n    AFURLSessionManager *manager = [[AFURLSessionManager alloc] initWithSessionConfiguration:configuration];\r\n    \r\n    NSURL *URL = [NSURL URLWithString:self.camper.savedProjectUrl];\r\n    NSURLRequest *request = [NSURLRequest requestWithURL:URL];\r\n    \r\n    NSURLSessionDownloadTask *downloadTask = [manager downloadTaskWithRequest:request progress:nil destination:^NSURL *(NSURL *targetPath, NSURLResponse *response) {\r\n        NSURL *url = [NSURL URLWithString:[[SKDocumentManager sharedInstance] getWorkingDirectory]];\r\n        return [url URLByAppendingPathComponent:[response suggestedFilename]];\r\n    } completionHandler:^(NSURLResponse *response, NSURL *filePath, NSError *error) {\r\n        NSLog(@\"File downloaded to: %@\", filePath.path);\r\n        NSString *zipPath =filePath.path;\r\n        NSString *destPath = [NSString stringWithFormat:@\"%@%@\", [[SKDocumentManager getInstance] getWorkingDirectory], @\"/Frames/\"];\r\n        NSError *errorz = nil;\r\n        \r\n        \r\n        [SSZipArchive unzipFileAtPath:zipPath toDestination:destPath overwrite:YES password:nil error:&errorz delegate:self];\r\n        \r\n        NSLog(@\"Error: %@\",errorz.localizedDescription);\r\n        [self deleteFileAtPath:filePath.path];\r\n        \r\n        // You have all the files in the working directory\r\n        NSLog(@\"here we are\");\r\n          [UIApplication setRootViewController:[UIApplication   viewControllerFromStoryboard:@\"Camera\" withViewControllerId:@\"CameraViewController\"]];\r\n        \r\n    }];\r\n    [downloadTask resume];\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/soffes/ssziparchive/issues/comments/90269181","html_url":"https://github.com/soffes/ssziparchive/issues/128#issuecomment-90269181","issue_url":"https://api.github.com/repos/soffes/ssziparchive/issues/128","id":90269181,"user":{"login":"BillCI","id":1874357,"avatar_url":"https://avatars.githubusercontent.com/u/1874357?v=3","gravatar_id":"","url":"https://api.github.com/users/BillCI","html_url":"https://github.com/BillCI","followers_url":"https://api.github.com/users/BillCI/followers","following_url":"https://api.github.com/users/BillCI/following{/other_user}","gists_url":"https://api.github.com/users/BillCI/gists{/gist_id}","starred_url":"https://api.github.com/users/BillCI/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BillCI/subscriptions","organizations_url":"https://api.github.com/users/BillCI/orgs","repos_url":"https://api.github.com/users/BillCI/repos","events_url":"https://api.github.com/users/BillCI/events{/privacy}","received_events_url":"https://api.github.com/users/BillCI/received_events","type":"User","site_admin":false},"created_at":"2015-04-06T22:45:04Z","updated_at":"2015-04-06T22:45:04Z","body":"yes thank you it seemed to be a problem with my api manager not saving the\nfile properly,\n\nthanks\n\nOn Mon, Apr 6, 2015 at 1:50 PM, Douglas Bumby <notifications@github.com>\nwrote:\n\n> Was this solved?\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/soffes/ssziparchive/issues/128#issuecomment-90236014>.\n>\n"}}