Removing the statsd timer wrapper had little change on the traceback.
class ErrorsResource(Resource): # Wrap the view dispatch with a statsd timing. - @measure_view - def dispatch(self, *args, **kwargs): - return Resource.dispatch(self, *args, **kwargs) + #@measure_view + #def dispatch(self, *args, **kwargs): + # return Resource.dispatch(self, *args, **kwargs)
Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/tastypie/resources.py", line 217, in wrapper response = callback(request, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/tastypie/resources.py", line 459, in dispatch_list return self.dispatch('list', request, **kwargs) File "/usr/lib/python2.7/dist-packages/tastypie/resources.py", line 491, in dispatch response = method(request, **kwargs) File "/usr/lib/python2.7/dist-packages/tastypie/resources.py", line 1299, in get_list objects = self.obj_get_list(bundle=base_bundle, **self.remove_api_resource_names(kwargs)) TypeError: obj_get_list() got an unexpected keyword argument 'bundle'
Removing the statsd timer wrapper had little change on the traceback.
class ErrorsResource( Resource) : dispatch( self, *args, **kwargs) dispatch( self, *args, **kwargs)
# Wrap the view dispatch with a statsd timing.
- @measure_view
- def dispatch(self, *args, **kwargs):
- return Resource.
+ #@measure_view
+ #def dispatch(self, *args, **kwargs):
+ # return Resource.
Traceback (most recent call last): python2. 7/dist- packages/ tastypie/ resources. py", line 217, in wrapper python2. 7/dist- packages/ tastypie/ resources. py", line 459, in dispatch_list 'list', request, **kwargs) python2. 7/dist- packages/ tastypie/ resources. py", line 491, in dispatch python2. 7/dist- packages/ tastypie/ resources. py", line 1299, in get_list get_list( bundle= base_bundle, **self. remove_ api_resource_ names(kwargs) )
File "/usr/lib/
response = callback(request, *args, **kwargs)
File "/usr/lib/
return self.dispatch(
File "/usr/lib/
response = method(request, **kwargs)
File "/usr/lib/
objects = self.obj_
TypeError: obj_get_list() got an unexpected keyword argument 'bundle'