-
-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug: error: System.NullReferenceException: Object reference not set to an instance of an object #13
Comments
Update - I finally got this running locally and debugged the code. An exception occurs at: Line 457 - ZipArchive.cs:
GitHub CoPilot suggests: _This error happens because the Central Directory of the ZIP archive is corrupt. The InvalidDataException is thrown when the ZipArchive class attempts to read the end of the central directory but encounters data that doesn't match the expected format.
I will continue to debug locally but any response is appreciated |
I will look into it @davykinger and get back. |
Hi @davykinger, I have looked into this and can't reproduce this behavior - unfortunately. Humming the tool here every night and have the same arguments set also. How is the structure of the repository it's trying to download? |
Thanks for looking into it The repo's structure in this case is entirely empty - might this be causing the problem? |
Hi @davykinger , Yes that can be it - I will see into the code and see if there is something to do :) |
@davykinger any updates on the repo's structure? |
@michaelmsonne the repo doesn't have a structure. It is entirely empty i.e. without a read.me or gitignore. We put in some logic to skip empty repos but experienced further errors, we are going to have to move on so feel free to close this issue |
Will see if I can manage to fix it :) |
Bug Report
Version:
1.1.0.0
Current behavior:
An error occurs, I believe, upon calling ZipArchive (line 851). However, I have not been able to debug due to reference issues with a few dependencies/packages. See error below:
13-08-2024 15:06:49 - [EventID 1001] Error Exception caught when trying to save file to disk: 'C:\Temp\ADOBackup\13-08-2024-(15-06)\DevOps Initiative_AttunityTest_master_blob.zip' - Azure DevOps Backup Log 13-08-2024.log.
d__1.MoveNext()at AzureDevOpsBackup.Program.
Expected behavior:
I believe this should unzip the blobs into useable folders and files
Steps to reproduce:
The following command is run from the file location of the AzureDevOpsBackup.exe:
.\AzureDevOpsBackup.exe --token "" --org "" --backup "C:\Temp\ADOBackup" --server "smtp.bailliegifford.com" --port "25" --from "" --to "" --unzip --cleanup
Related code:
Full error log attached
Other information:
A generic point about using ZipArchive is made here (following a user experiencing the same issue) - https://stackoverflow.com/questions/33687425/central-directory-corrupt-error-in-ziparchive
The text was updated successfully, but these errors were encountered: