Skip to content

Instantly share code, notes, and snippets.

@jaredlewis
Created April 10, 2013 03:33
Show Gist options
  • Save jaredlewis/5351578 to your computer and use it in GitHub Desktop.
Save jaredlewis/5351578 to your computer and use it in GitHub Desktop.
ERROR:django.request:Internal Server Error: /user/a@a.com/interactions
Traceback (most recent call last):
File "/Users/jaredlewis/projects/python/akimbo/my-news-api/env/lib/python2.7/site-packages/django/core/handlers/base.py", line 111, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/Users/jaredlewis/projects/python/akimbo/sleepy/sleepy/base.py", line 135, in __call__
response = getattr(self, request.method)(request, *args, **kwargs)
File "/Users/jaredlewis/projects/python/akimbo/sleepy/sleepy/decorators.py", line 36, in _requires_parameters_check
return fn(self, request, *args, **kwargs)
File "/Users/jaredlewis/projects/python/akimbo/my-news-api/mynews/users/auth/decorators.py", line 23, in _requires_authentication_check
return fn(self, request, *args, **kwargs)
File "/Users/jaredlewis/projects/python/akimbo/my-news-api/mynews/interactions/views.py", line 55, in POST
story = get_story_or_scrape(url=url)
File "/Users/jaredlewis/projects/python/akimbo/my-news-api/mynews/scraper/scrape.py", line 376, in get_story_or_scrape
Topic.tag_story(story)
File "/Users/jaredlewis/projects/python/akimbo/my-news-api/mynews/subjects/models.py", line 102, in tag_story
topics = NamedEntityRecognitionService.get_topic_tags(story)
File "/Users/jaredlewis/projects/python/akimbo/my-news-api/mynews/subjects/models.py", line 32, in get_topic_tags
response = tr_client.analyze(text)
File "/Users/jaredlewis/projects/python/akimbo/my-news-api/mynews/subjects/textrazor.py", line 1022, in analyze
response_json = json.loads(response.read().decode("utf-8"))
File "/Users/jaredlewis/projects/python/akimbo/my-news-api/env/lib/python2.7/site-packages/simplejson/__init__.py", line 453, in loads
return _default_decoder.decode(s)
File "/Users/jaredlewis/projects/python/akimbo/my-news-api/env/lib/python2.7/site-packages/simplejson/decoder.py", line 429, in decode
obj, end = self.raw_decode(s)
File "/Users/jaredlewis/projects/python/akimbo/my-news-api/env/lib/python2.7/site-packages/simplejson/decoder.py", line 449, in raw_decode
obj, end = self.scan_once(s, idx=_w(s, idx).end())
JSONDecodeError: Expecting object: line 2 column 1219083 (char 1219083)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment