Whether talking to the Twitter API or any other API on the web, always check
the response code before attempting to do any processing of the response
body. Proceed only if you got a 200 (or the response code you expected for
that particular operation). Many things can go wrong in the process of
making an HTTP request between your computer and our servers.

On Wed, Jul 15, 2009 at 10:32, J.D. <jeremy.d.mul...@gmail.com> wrote:

> On Jul 15, 9:09 am, Nick Arnett <nick.arn...@gmail.com> wrote:
> > My code waits a few seconds and tries again if the JSON parse
> > fails.  A bunch of fails in a row and it gives up.
> Thanks. I have similar code around the web calls, but had not put it
> around the json parse yet.

Alex Payne - Platform Lead, Twitter, Inc.

Reply via email to