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

KeyError: 'MetaDataAccess' #11

Open
frafra opened this issue Oct 28, 2022 · 0 comments
Open

KeyError: 'MetaDataAccess' #11

frafra opened this issue Oct 28, 2022 · 0 comments

Comments

@frafra
Copy link

frafra commented Oct 28, 2022

Hi! I get a KeyError: 'MetaDataAccess':

2022-10-28 14:12:24,836 ERROR [ckan.config.middleware.flask_app] 'MetaDataAccess'
Traceback (most recent call last):
  File "/usr/lib/ckan/venv/lib/python3.8/site-packages/flask/app.py", line 1949, in full_dispatch_request
    rv = self.dispatch_request()
  File "/usr/lib/ckan/venv/lib/python3.8/site-packages/flask/app.py", line 1935, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/usr/lib/ckan/venv/src/ckanext/ckanext-oaipmh/ckanext/oaipmh/blueprints.py", line 39, in b2find_oai
    res = serv.handleRequest(parms)
  File "/usr/lib/ckan/venv/lib/python3.8/site-packages/oaipmh/server.py", line 314, in handleRequest
    return self.handleException(request_kw, sys.exc_info())
  File "/usr/lib/ckan/venv/lib/python3.8/site-packages/oaipmh/server.py", line 326, in handleException
    self._tree_server.handleException(value).getroot(),
  File "/usr/lib/ckan/venv/lib/python3.8/site-packages/oaipmh/server.py", line 311, in handleRequest
    return self.handleVerb(verb, request_kw)
  File "/usr/lib/ckan/venv/lib/python3.8/site-packages/oaipmh/server.py", line 318, in handleVerb
    return etree.tostring(method(**kw).getroot(),
  File "/usr/lib/ckan/venv/lib/python3.8/site-packages/oaipmh/server.py", line 131, in listRecords
    self._outputResuming(
  File "/usr/lib/ckan/venv/lib/python3.8/site-packages/oaipmh/server.py", line 206, in _outputResuming
    result, token = input_func(**kw)
  File "/usr/lib/ckan/venv/lib/python3.8/site-packages/oaipmh/common.py", line 126, in method
    return obj(self, **kw)
  File "/usr/lib/ckan/venv/lib/python3.8/site-packages/oaipmh/common.py", line 121, in __call__
    return bound_self.handleVerb(self._verb, kw)
  File "/usr/lib/ckan/venv/lib/python3.8/site-packages/oaipmh/server.py", line 427, in handleVerb
    result = method(**kw)
  File "/usr/lib/ckan/venv/src/ckanext/ckanext-oaipmh/ckanext/oaipmh/oaipmh_server.py", line 465, in listRecords
    data.append(self._record_for_dataset_dc(package, set_spec))
  File "/usr/lib/ckan/venv/src/ckanext/ckanext-oaipmh/ckanext/oaipmh/oaipmh_server.py", line 333, in _record_for_dataset_dc
    base_url, identifier = self._provinfo(extras['MetaDataAccess'][0])
KeyError: 'MetaDataAccess'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant