postoditacco / friendfeed-api

Automatically exported from code.google.com/p/friendfeed-api
0 stars 0 forks source link

simplejson decoder throws ValueError in Python API #28

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
fetch_feed() method throws ValueError except when fetching this entry
(traceback attached):

http://friendfeed-api.com/v2/feed/safetyguy1656?start=6185&num=1&pretty=1&raw=1

disabling strict decoding 
(line 42 in friendfeed.py:
_parse_json = lambda s: simplejson.loads(s.decode("utf-8"), strict=False)
)
seems to solve the issue on this particular data. not sure if this
malformed data, or an escaping character bug on the api side or purely a
simplejson issue, but i thought it's worth mentioning.

this entry gives the same error
http://friendfeed-api.com/v2/feed/safetyguy1656?start=6222&num=1&pretty=1&raw=1

Original issue reported on code.google.com by dragul...@gmail.com on 15 Sep 2009 at 10:09

Attachments: