Created
January 5, 2017 16:20
-
-
Save efagerberg/cee209f313b8d17cfb6a60561a00d63f to your computer and use it in GitHub Desktop.
Update Rating Falcon QA Traceback
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
```In [5]: from indexer import tasks | |
In [6]: tasks.update_rating(body) | |
[DEBUG] [2017-01-05 16:19:19,757] [pysolr]: Starting request to 'http://localhost:8983/solr/collection2/select/?q=archive_id%3A9780133926040&fq=content_type%3Abook&wt=json&fl=archive_id' (get) with body ''... | |
[INFO] [2017-01-05 16:19:19,768] [pysolr]: Finished 'http://localhost:8983/solr/collection2/select/?q=archive_id%3A9780133926040&fq=content_type%3Abook&wt=json&fl=archive_id' (get) with body '' in 0.011 seconds, with status 200 | |
[DEBUG] [2017-01-05 16:19:19,769] [pysolr]: Found '0' search results. | |
[DEBUG] [2017-01-05 16:19:19,769] [indexer.tasks]: Started indexing book: 9780133926040 | |
--------------------------------------------------------------------------- | |
ValueError Traceback (most recent call last) | |
<ipython-input-6-6071927104ae> in <module>() | |
----> 1 tasks.update_rating(body) | |
/var/www/falcon-qa/ve/local/lib/python2.7/site-packages/celery/local.pyc in __call__(self, *a, **kw) | |
186 | |
187 def __call__(self, *a, **kw): | |
--> 188 return self._get_current_object()(*a, **kw) | |
189 | |
190 def __len__(self): | |
/var/www/falcon-qa/ve/local/lib/python2.7/site-packages/celery/app/task.pyc in __call__(self, *args, **kwargs) | |
418 if self.__self__ is not None: | |
419 return self.run(self.__self__, *args, **kwargs) | |
--> 420 return self.run(*args, **kwargs) | |
421 finally: | |
422 self.pop_request() | |
/var/www/falcon-qa/falcon_20170104181210/indexer/tasks/__init__.pyc in update_rating(rating_data) | |
329 if not identifier_exists(identifier): | |
330 # NOTE: Runs the indexing task synchronously on purpose | |
--> 331 index_book(identifier) | |
332 | |
333 # This hack is here because the DocValue field must be an int (see comment in schemal.xml, and | |
/var/www/falcon-qa/ve/local/lib/python2.7/site-packages/celery/local.pyc in __call__(self, *a, **kw) | |
186 | |
187 def __call__(self, *a, **kw): | |
--> 188 return self._get_current_object()(*a, **kw) | |
189 | |
190 def __len__(self): | |
/var/www/falcon-qa/ve/local/lib/python2.7/site-packages/celery/app/task.pyc in __call__(self, *args, **kwargs) | |
418 if self.__self__ is not None: | |
419 return self.run(self.__self__, *args, **kwargs) | |
--> 420 return self.run(*args, **kwargs) | |
421 finally: | |
422 self.pop_request() | |
/var/www/falcon-qa/falcon_20170104181210/indexer/tasks/__init__.pyc in index_book(identifier) | |
224 heron = get_heron_client() | |
225 | |
--> 226 docs = heron.indexable_docs_for_identifier(identifier) | |
227 | |
228 if not docs.get('book'): | |
/var/www/falcon-qa/falcon_20170104181210/indexer/heron_client.pyc in indexable_docs_for_identifier(self, identifier) | |
158 # Using .get on these dicts as don't want to rely too much on Heron API not changing | |
159 return { | |
--> 160 'book': self.book(data_from_api, url), | |
161 'authors': validated_object_from_deserializer( | |
162 AuthorSerializer(data=data_from_api.get('authors'), many=True), url), | |
/var/www/falcon-qa/falcon_20170104181210/indexer/heron_client.pyc in book(self, data_from_api, url, include_chapters) | |
134 if not serializer.is_valid(): | |
135 log.error(u"Failed to deserialize book response from URL: %s. " | |
--> 136 u"Error was: %s", url, serializer.errors) | |
137 return | |
138 | |
/var/www/falcon-qa/ve/local/lib/python2.7/site-packages/rest_framework/serializers.pyc in errors(self) | |
536 detail = ErrorDetail('No data provided', code='null') | |
537 ret = {api_settings.NON_FIELD_ERRORS_KEY: [detail]} | |
--> 538 return ReturnDict(ret, serializer=self) | |
539 | |
540 | |
/var/www/falcon-qa/ve/local/lib/python2.7/site-packages/rest_framework/utils/serializer_helpers.pyc in __init__(self, *args, **kwargs) | |
18 def __init__(self, *args, **kwargs): | |
19 self.serializer = kwargs.pop('serializer') | |
---> 20 super(ReturnDict, self).__init__(*args, **kwargs) | |
21 | |
22 def copy(self): | |
/usr/lib/python2.7/collections.pyc in __init__(self, *args, **kwds) | |
50 root[:] = [root, root, None] | |
51 self.__map = {} | |
---> 52 self.__update(*args, **kwds) | |
53 | |
54 def __setitem__(self, key, value, dict_setitem=dict.__setitem__): | |
/var/www/falcon-qa/ve/lib/python2.7/_abcoll.pyc in update(*args, **kwds) | |
545 self[key] = other[key] | |
546 else: | |
--> 547 for key, value in other: | |
548 self[key] = value | |
549 for key, value in kwds.items(): | |
ValueError: too many values to unpack``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment