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

Problème d'indexation sur certains jeux de données #140

Closed
abulte opened this issue Jun 13, 2019 · 0 comments · Fixed by opendatateam/udata#2256
Closed

Problème d'indexation sur certains jeux de données #140

abulte opened this issue Jun 13, 2019 · 0 comments · Fixed by opendatateam/udata#2256
Labels
Bug Indique qu’il s’agit d’un problème

Comments

@abulte
Copy link
Contributor

abulte commented Jun 13, 2019

Les jeux de données suivants posent problème à la (ré)indexation :

Visiblement un problème de calcul de poids dans l'index.

ERROR: Unable to index Dataset "56b1bf6488ee3873be81d140": {u'caused_by': {u'reason': u'Weight must be in the interval [0..2147483647], but was [-20]', u'type': u'illegal_argument_exception'}, u'reason': u'failed to parse', u'type': u'mapper_parsing_exception'}
ERROR: Unable to index Dataset "56b1bf20c751df40b4c30484": {u'caused_by': {u'reason': u'Weight must be in the interval [0..2147483647], but was [-20]', u'type': u'illegal_argument_exception'}, u'reason': u'failed to parse', u'type': u'mapper_parsing_exception'}

Celui-ci également (année de création invalide) :

https://www.data.gouv.fr/fr/datasets/5ce8899f06e3e76c3ed57ec7/

ERROR: Unable to index Dataset "5ce8899f06e3e76c3ed57ec7": year=199 is before 1900; the datetime strftime() methods require year >= 1900
│Traceback (most recent call last):
│   File "/srv/udata/local/lib/python2.7/site-packages/udata/search/commands.py", line 49, in iter_qs
│     doc = adapter.from_model(obj).to_dict(include_meta=True)
│   File "/srv/udata/local/lib/python2.7/site-packages/udata/search/adapter.py", line 43, in from_model
│     return cls(meta={'id': document.id}, **cls.serialize(document))
│   File "/srv/udata/local/lib/python2.7/site-packages/udata/core/dataset/search.py", line 233, in serialize
│     'created': dataset.created_at.strftime('%Y-%m-%dT%H:%M:%S'),
└ ValueError: year=199 is before 1900; the datetime strftime() methods require year >= 1900
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Indique qu’il s’agit d’un problème
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant