[ckan-dev] exception KeyError on resources update

frederic.prieur at ville.montreal.qc.ca frederic.prieur at ville.montreal.qc.ca
Mon Aug 11 18:49:12 UTC 2014


Hi There, We keep having a recurring 500 error when we try to update only 
some resources on some datasets, Can anyone can help me with this:

Here is the trace:

Error - <type 'exceptions.KeyError'>: 'resources'
URL: 
http://vdm-ckan2-2.local:5000/dataset/catalogue-bibliotheques/resource_edit/67a95c30-4e21-4346-83f7-491d4ca54a7e
File 
'/usr/lib/ckan/default/local/lib/python2.7/site-packages/weberror/errormiddleware.py', 
line 162 in __call__
  app_iter = self.application(environ, sr_checker)
File 
'/usr/lib/ckan/default/local/lib/python2.7/site-packages/webob/dec.py', 
line 147 in __call__
  resp = self.call_func(req, *args, **self.kwargs)
File 
'/usr/lib/ckan/default/local/lib/python2.7/site-packages/webob/dec.py', 
line 208 in call_func
  return self.func(req, *args, **kwargs)
File 
'/usr/lib/ckan/default/local/lib/python2.7/site-packages/fanstatic/publisher.py', 
line 234 in __call__
  return request.get_response(self.app)
File 
'/usr/lib/ckan/default/local/lib/python2.7/site-packages/webob/request.py', 
line 1053 in get_response
  application, catch_exc_info=False)
File 
'/usr/lib/ckan/default/local/lib/python2.7/site-packages/webob/request.py', 
line 1022 in call_application
  app_iter = application(self.environ, start_response)
File 
'/usr/lib/ckan/default/local/lib/python2.7/site-packages/webob/dec.py', 
line 147 in __call__
  resp = self.call_func(req, *args, **self.kwargs)
File 
'/usr/lib/ckan/default/local/lib/python2.7/site-packages/webob/dec.py', 
line 208 in call_func
  return self.func(req, *args, **kwargs)
File 
'/usr/lib/ckan/default/local/lib/python2.7/site-packages/fanstatic/injector.py', 
line 54 in __call__
  response = request.get_response(self.app)
File 
'/usr/lib/ckan/default/local/lib/python2.7/site-packages/webob/request.py', 
line 1053 in get_response
  application, catch_exc_info=False)
File 
'/usr/lib/ckan/default/local/lib/python2.7/site-packages/webob/request.py', 
line 1022 in call_application
  app_iter = application(self.environ, start_response)
File 
'/usr/lib/ckan/default/local/lib/python2.7/site-packages/beaker/middleware.py', 
line 73 in __call__
  return self.app(environ, start_response)
File 
'/usr/lib/ckan/default/local/lib/python2.7/site-packages/beaker/middleware.py', 
line 155 in __call__
  return self.wrap_app(environ, session_start_response)
File 
'/usr/lib/ckan/default/local/lib/python2.7/site-packages/routes/middleware.py', 
line 131 in __call__
  response = self.app(environ, start_response)
File 
'/usr/lib/ckan/default/local/lib/python2.7/site-packages/pylons/wsgiapp.py', 
line 125 in __call__
  response = self.dispatch(controller, environ, start_response)
File 
'/usr/lib/ckan/default/local/lib/python2.7/site-packages/pylons/wsgiapp.py', 
line 324 in dispatch
  return controller(environ, start_response)
File '/usr/lib/ckan/default/src/ckan/ckan/lib/base.py', line 346 in 
__call__
  res = WSGIController.__call__(self, environ, start_response)
File 
'/usr/lib/ckan/default/local/lib/python2.7/site-packages/pylons/controllers/core.py', 
line 221 in __call__
  response = self._dispatch_call()
File 
'/usr/lib/ckan/default/local/lib/python2.7/site-packages/pylons/controllers/core.py', 
line 172 in _dispatch_call
  response = self._inspect_call(func)
File 
'/usr/lib/ckan/default/local/lib/python2.7/site-packages/pylons/controllers/core.py', 
line 107 in _inspect_call
  result = self._perform_call(func, args)
File 
'/usr/lib/ckan/default/local/lib/python2.7/site-packages/pylons/controllers/core.py', 
line 60 in _perform_call
  return func(**args)
File '/usr/lib/ckan/default/src/ckan/ckan/controllers/package.py', line 
565 in resource_edit
  get_action('resource_update')(context, data)
File '/usr/lib/ckan/default/src/ckan/ckan/logic/__init__.py', line 419 in 
wrapped
  result = _action(context, data_dict, **kw)
File '/usr/lib/ckan/default/src/ckan/ckan/logic/action/update.py', line 
233 in resource_update
  errors = e.error_dict['resources'][n]
KeyError: 'resources

Thanks.
---------------------------------------------------------------------------
Frédéric Prieur
Programmeur analyste - développement de systèmes 

Service Des Technologies D' Informations (STI)
Division Exploitation et évolution des applications
Ville de Montréal

Tél: (514) 872-4798
frederic.prieur at ville.montreal.qc.ca

P Avant d'imprimer, pensez à l'environnement.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20140811/7e9eb502/attachment-0002.html>


More information about the ckan-dev mailing list