m-lab / annotation-service

Annotation integration service for M-Lab data
Apache License 2.0
3 stars 5 forks source link

json decode errors in api-v2 calls #274

Open gfr10598 opened 4 years ago

gfr10598 commented 4 years ago

api-v2.go:220: Decode error: json: unknown field "ContinentCode"

It appears that the json encoding of the annotation service results may have changed. We are now getting frequent errors about unknown field "ContinentCode". This is the name of an existing field, but there is a json tag indicating that it should be encoded as continent_code.

I can't see any reason why behavior would have changed.

It looks like annotations are still succeeding, as the code retries allowing unknown fields.

I observed this in the new k8s parser, not in the normal production parser.

pboothe commented 4 years ago

When did it start? Is it only for a subset of the data?