srid/weeklyreddit — Issue #3: javascript reddit feed fails
Author: bebraw
Created: 2011-11-14 14:37:26+00:00
State: open

See http://weeklyreddit.appspot.com/rss/javascript . For some reason it gives following error for me:

Traceback (most recent call last):
File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/webapp/_webapp25.py", line 701, in __call__
handler.get(*groups)
File "/base/data/home/apps/weeklyreddit/1.348130647032760310/main.py", line 183, in get
reddit_top_links_rss(subreddit or 'reddit.com')
File "/base/data/home/apps/weeklyreddit/1.348130647032760310/main.py", line 117, in reddit_top_links_rss
for link in CurrentWeekEntry.reddit_top_links_for_this_week(subreddit):
File "/base/data/home/apps/weeklyreddit/1.348130647032760310/main.py", line 73, in reddit_top_links_for_this_week
j = reddit_top_links(subreddit)
File "/base/data/home/apps/weeklyreddit/1.348130647032760310/main.py", line 106, in reddit_top_links
j = json.load(urllib.urlopen(top_url))
File "/base/python_runtime/python_lib/versions/1/simplejson/__init__.py", line 332, in load
use_decimal=use_decimal, **kw)
File "/base/python_runtime/python_lib/versions/1/simplejson/__init__.py", line 388, in loads
return _default_decoder.decode(s)
File "/base/python_runtime/python_lib/versions/1/simplejson/decoder.py", line 402, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/base/python_runtime/python_lib/versions/1/simplejson/decoder.py", line 418, in raw_decode
obj, end = self.scan_once(s, idx)
File "/base/python_runtime/python_lib/versions/1/simplejson/scanner.py", line 71, in scan_once
return _scan_once(string, idx)
File "/base/python_runtime/python_lib/versions/1/simplejson/scanner.py", line 42, in _scan_once
_scan_once, object_hook, object_pairs_hook, memo)
File "/base/python_runtime/python_lib/versions/1/simplejson/decoder.py", line 206, in JSONObject
raise JSONDecodeError("Expecting property name", s, end)
JSONDecodeError: Expecting property name: line 1 column 1 (char 1)