jackybowen / python-twitter

Automatically exported from code.google.com/p/python-twitter
Apache License 2.0
0 stars 0 forks source link

twitter.TwitterError: json decoding #211

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
twitter.Api() authenticates fine with credentials, and api.VerifyCredentials() 
returns the expected output.

print th.GetFollowerIDs() however, raises the exception below:

    print th.GetFollowerIDs()
  File "/home/tim/Codebase/trunk/bin/stream-fx/library/twitter.py", line 2969, in GetFollowerIDs
    data = self._ParseAndCheckTwitter(json)
  File "/home/tim/Codebase/trunk/bin/stream-fx/library/twitter.py", line 3674, in _ParseAndCheckTwitter
    raise TwitterError("json decoding")
library.twitter.TwitterError: json decoding

twitter.py version '0.8.2'

Original issue reported on code.google.com by makobu.mwambiriro@gmail.com on 5 Oct 2011 at 11:24

GoogleCodeExporter commented 9 years ago
Did you check the bottom listed solution to Issue 206 (similar to this one): 
http://code.google.com/p/python-twitter/issues/detail?id=206

This issue is a bad url is being used, meaning that twitter is not even 
returning a json and when python-twitter tries to convert the response to a 
json it is throwing an error. I made a typo when I modified to url initially 
and got the same result, but when I corrected the typo the problem disappeared.

Original comment by m...@neworganizing.com on 15 Nov 2011 at 11:22

GoogleCodeExporter commented 9 years ago
committed changeset 235:cec8703b7782

Original comment by bear42 on 3 Dec 2011 at 9:30

GoogleCodeExporter commented 9 years ago
Works perfect now, thanks.

Original comment by makobu.mwambiriro@gmail.com on 4 Dec 2011 at 12:57