ganesansays / python-twitter

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

api.GetMentions errors #250

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I'm running python-twitter 0.8.5 on the raspberry pi. I didn't have this error 
before but it seems to have just happened now without any changes to the script.

This is the error which I get.

File "twitter_interface.py", line 19, in <module>
    morsetweets = api.GetMentions()
  File "/usr/local/lib/python2.7/dist-packages/python_twitter-0.8.5-py2.7.egg/twitter.py", line 3475, in GetMentions
    data = self._ParseAndCheckTwitter(json)
  File "/usr/local/lib/python2.7/dist-packages/python_twitter-0.8.5-py2.7.egg/twitter.py", line 3875, in _ParseAndCheckTwitter
    raise TwitterError("json decoding")
twitter.TwitterError: json decoding

Thanks in advance!

Original issue reported on code.google.com by hepplewh...@gmail.com on 5 Mar 2013 at 5:33

GoogleCodeExporter commented 9 years ago
anytime you get a "json decoding" error with an api call that was working it 
means one of two things:

1) Twitter's API is borked (which an hour ago it was for v1.0 calls)
2) Your oauth keys are either now dead or broken

both of these can be checked by adding debugHTTP=True to your API call - then 
you will see the raw http response as Twitter seems to enjoy sending html for 
some errors when responding.

Original comment by bear42 on 5 Mar 2013 at 5:52