gfcapalbo / python-twitter

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

json decode error on GetStatus for specific ids #219

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. api.GetStatus(21635321700)
2. api.GetStatus(25642158700)
3.

What is the expected output? What do you see instead?
twitter.TwitterError: json decoding

What version of the product are you using? On what operating system?
python-twitter 0.8.2 on ubuntu lucid (installed via pip)
Python 2.6.5

Please provide any additional information below.
It is not clear to me exactly what is the problem, but clearly the json module 
is having difficulty parsing the json returned by Twitter. Perhaps this is an 
upstream problem?

Original issue reported on code.google.com by saf...@gmail.com on 30 Nov 2011 at 9:12

GoogleCodeExporter commented 9 years ago
a couple of times when i've seen that happen it means that twitter, in their 
infinite wisdom, has decided to return an html error page instead of a json 
encoded error payload.

i've had to add try/except around my own code for that - looks like we may have 
to do that in a more robust way for python-twitter

Original comment by bear42 on 30 Nov 2011 at 9:19

GoogleCodeExporter commented 9 years ago
i'm going to dup this against issue 208 and morph it into a more generic error 
to make the json parsing of twitter results more robust.

Original comment by bear42 on 30 Nov 2011 at 9:21

GoogleCodeExporter commented 9 years ago

Original comment by bear42 on 30 Nov 2011 at 9:21