0

我在我的 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.']}

对此有何见解?

4

1 回答 1

2

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

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

于 2013-02-13T17:08:40.343 回答