osv.dev icon indicating copy to clipboard operation
osv.dev copied to clipboard

Unhandled exception in sources.py causing crash under specific conditions

Open jess-lowe opened this issue 7 months ago • 2 comments

Describe the bug Due to an unhandled exception in the importer/sources.py file, when the schema validation of a file fails, the cron job was being killed. https://github.com/google/osv.dev/blob/7efca9136ce630a25f2a754d4b18148b0e0b8c4d/osv/sources.py#L169C2-L173C12 This was noticed as the prefix of a new data source was missing from the schema.

Screenshots Image

jess-lowe avatar May 27 '25 06:05 jess-lowe

This issue has not had any activity for 60 days and will be automatically closed in two weeks

See https://github.com/google/osv.dev/blob/master/CONTRIBUTING.md for how to contribute a PR if you're interested in helping out.

github-actions[bot] avatar Jul 26 '25 07:07 github-actions[bot]

Currently does not crash the entire importer, but will stop the import of that source.

Next step, we should make this notify us, and continue processing the other records in that source.

another-rex avatar Jul 28 '25 04:07 another-rex