Skip to content
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

Field url is required for type with serial name com.saveourtool.osv4k.Reference, but it was missing #2987

Open
0x6675636b796f75676974687562 opened this issue Nov 8, 2024 · 0 comments
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@0x6675636b796f75676974687562
Copy link
Member

0x6675636b796f75676974687562 commented Nov 8, 2024

Occurs when uploading certain OSV JSON files (needs to be forwarded to saveourtool/cosv4k).

Examples:

  • CAN-2022-1000071
  • CAN-2023-1000000
18:02:10.937 [boundedElastic-187] ERROR c.s.cosv.backend.service.CosvService - Failed to process raw COSV file with id: 15467 kotlinx.serialization.MissingFieldException: Field 'url' is required for type with serial name 'com.saveourtool.osv4k.Reference', but it was missing
	at kotlinx.serialization.internal.PluginExceptionsKt.throwMissingFieldException(PluginExceptions.kt:20)
	at com.saveourtool.osv4k.Reference.<init>(OsvSchema.kt:890)
	at com.saveourtool.osv4k.Reference$$serializer.deserialize(OsvSchema.kt:890)
	at com.saveourtool.osv4k.Reference$$serializer.deserialize(OsvSchema.kt:890)
	at kotlinx.serialization.json.internal.PolymorphicKt.decodeSerializableValuePolymorphic(Polymorphic.kt:77)

image

This seems like a rather frequent error, so we need to either replace the missing url field with a dummy value, or fix this in saveourtool/cosv4k and upgrade:

image

@0x6675636b796f75676974687562 0x6675636b796f75676974687562 added bug Something isn't working good first issue Good for newcomers labels Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant