MobilityData / gtfs-validator

Canonical GTFS Validator project for schedule (static) files.
https://gtfs-validator.mobilitydata.org/
Apache License 2.0
278 stars 100 forks source link

Unzipping Error #398

Closed mcplanner-zz closed 3 years ago

mcplanner-zz commented 3 years ago

Describe the bug The validator was unable to process a feed and gave an error.

To Reproduce Run the validator on the following dataset: http://transitfeeds.com/p/orange-county-transportation-authority/197/latest

Expected behavior No notice should be generated in this case.

Witnessed behavior Upon running the validator, I received this message before the operation ended.

[INFO ] 2020-09-30 13:06:31.639 [main] Main - Exporting validation repo content:[
Notice{filename='/Users/ruthmiller/Downloads/Validator/OCTA.zip', level='ERROR', code='8', title='Unzipping error', description='An error occurred while trying to unzip archive: /Users/ruthmiller/Downloads/Validator/OCTA.zip', extra='{}'}, 
Notice{filename='/Users/ruthmiller/Downloads/Validator/OCTA.zip', level='ERROR', code='8', title='Unzipping error', description='An error occurred while trying to unzip archive: /Users/ruthmiller/Downloads/Validator/OCTA.zip', extra='{}'}, 
Notice{filename='/Users/ruthmiller/Downloads/Validator/OCTA.zip', level='ERROR', code='8', title='Unzipping error', description='An error occurred while trying to unzip archive: /Users/ruthmiller/Downloads/Validator/OCTA.zip', extra='{}'}, 
Notice{filename='/Users/ruthmiller/Downloads/Validator/OCTA.zip', level='ERROR', code='8', title='Unzipping error', description='An error occurred while trying to unzip archive: /Users/ruthmiller/Downloads/Validator/OCTA.zip', extra='{}'}, 
Notice{filename='/Users/ruthmiller/Downloads/Validator/OCTA.zip', level='ERROR', code='8', title='Unzipping error', description='An error occurred while trying to unzip archive: /Users/ruthmiller/Downloads/Validator/OCTA.zip', extra='{}'}, 
Notice{filename='/Users/ruthmiller/Downloads/Validator/OCTA.zip', level='ERROR', code='8', title='Unzipping error', description='An error occurred while trying to unzip archive: /Users/ruthmiller/Downloads/Validator/OCTA.zip', extra='{}'}, 
Notice{filename='/Users/ruthmiller/Downloads/Validator/OCTA.zip', level='ERROR', code='8', title='Unzipping error', description='An error occurred while trying to unzip archive: /Users/ruthmiller/Downloads/Validator/OCTA.zip', extra='{}'}, 
Notice{filename='/Users/ruthmiller/Downloads/Validator/OCTA.zip', level='ERROR', code='8', title='Unzipping error', description='An error occurred while trying to unzip archive: /Users/ruthmiller/Downloads/Validator/OCTA.zip', extra='{}'}, 
Notice{filename='/Users/ruthmiller/Downloads/Validator/OCTA.zip', level='ERROR', code='8', title='Unzipping error', description='An error occurred while trying to unzip archive: /Users/ruthmiller/Downloads/Validator/OCTA.zip', extra='{}'}, 
Notice{filename='/Users/ruthmiller/Downloads/Validator/OCTA.zip', level='ERROR', code='8', title='Unzipping error', description='An error occurred while trying to unzip archive: /Users/ruthmiller/Downloads/Validator/OCTA.zip', extra='{}'}, 
Notice{filename='agency.txt', level='ERROR', code='3', title='Missing required file', description='File `agency.txt` is required.', extra='{}'}, 
Notice{filename='stops.txt', level='ERROR', code='3', title='Missing required file', description='File `stops.txt` is required.', extra='{}'}, 
Notice{filename='routes.txt', level='ERROR', code='3', title='Missing required file', description='File `routes.txt` is required.', extra='{}'}, 
Notice{filename='trips.txt', level='ERROR', code='3', title='Missing required file', description='File `trips.txt` is required.', extra='{}'}, 
Notice{filename='stop_times.txt', level='ERROR', code='3', title='Missing required file', description='File `stop_times.txt` is required.', extra='{}'}, 
Notice{filename='calendar.txt', level='ERROR', code='56', title='Missing both `calendar_dates.txt` and `calendar.txt` files', description='Both files `calendar_dates.txt` and `calendar.txt` are missing from the GTFS archive. At least one of the files must be provided', extra='{otherMissingFilename=calendar_dates.txt}'}, 
Notice{filename='null', level='ERROR', code='39', title='Empty csv file', description='`null` does not have any headers or data.', extra='{}'}, 
Notice{filename='null', level='ERROR', code='39', title='Empty csv file', description='`null` does not have any headers or data.', extra='{}'}, 
Notice{filename='null', level='ERROR', code='39', title='Empty csv file', description='`null` does not have any headers or data.', extra='{}'}, 
Notice{filename='null', level='ERROR', code='39', title='Empty csv file', description='`null` does not have any headers or data.', extra='{}'}, 
Notice{filename='null', level='ERROR', code='39', title='Empty csv file', description='`null` does not have any headers or data.', extra='{}'}]

Environment used

Additional context None

ghost commented 3 years ago

Fixing the issue revealed another issue that was also fixed at the same time. We retrieved the original dataset URL from the one you provided and added it to our automated end to end testing workflow https://github.com/MobilityData/gtfs-validator/runs/1277644807?check_suite_focus=true Thks!