ckan自定义收割机'__junk'验证

时间:2013-02-13 10:32:26

标签: ckan

我在localhost CKAN安装(1.8)中成功实现了一个自定义Harvester,但是当我移动另一台(应该是相同的配置)机器时,我收到了这个错误:

2013-02-13 11:18:21,670 DEBUG [ckanext.patstatweb.harvesters] In PatStatWebHarvester fetch_stage
2013-02-13 11:18:21,981 DEBUG [ckanext.patstatweb.harvesters] In PatStatWebHarvester import_stage
2013-02-13 11:18:22,357 INFO  [ckanext.harvest.harvesters.base] Package with GUID 9d15e19d1b17ac432dd704542a384304f7a37992 does not exist, let's create it
2013-02-13 11:18:22,384 ERROR [ckanext.harvest.harvesters.base] {'  junk': 'The input field __junk was not expected.'}
Traceback (most recent call last):
  File "/home/ckan/pyenv/src/ckanext-harvest/ckanext/harvest/harvesters/base.py", line 165, in _create_or_update_package
    new_package = get_action('package_create_rest')(context, package_dict)
  File "/home/ckan/pyenv/src/ckan/ckan/logic/action/create.py", line 723, in     package_create_rest
    dictized_after = _get_action('package_create')(context, dictized_package)
  File "/home/ckan/pyenv/src/ckan/ckan/logic/action/create.py", line 137, in package_create
    raise ValidationError(errors)
ValidationError: {'  junk': 'The input field __junk was not expected.'}
2013-02-13 11:18:22,392 ERROR [ckanext.harvest.harvesters.base] Invalid package with GUID 9d15e19d1b17ac432dd704542a384304f7a37992: {'__junk': ['The input field __junk was not expected.']}

对此有何见解?

1 个答案:

答案 0 :(得分:2)

问题是由CKAN组织设置错误和收割机插件引起的

这解决了问题https://github.com/okfn/ckan/pull/391