Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

api.GetMentions errors #250

Open
GoogleCodeExporter opened this issue Aug 6, 2015 · 1 comment
Open

api.GetMentions errors #250

GoogleCodeExporter opened this issue Aug 6, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

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 [email protected] on 5 Mar 2013 at 5:33

@GoogleCodeExporter
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant