The Streaming API will print a short text message along with errors that is
often a very explicit indication of the problem. I don't think it throws 500
errors (see: http://dev.twitter.com/pages/streaming_api_response_codes) so
something odd is going on. If anything, it is throwing a 406, as you haven't
provided parameters to track.

-John Kalucki
http://twitter.com/jkalucki
Twitter, Inc.


On Tue, Sep 7, 2010 at 4:38 AM, omri <omridek...@gmail.com> wrote:

> def run (self):
>    status_url = "http://stream.twitter.com/1/statuses/filter.json";
>    request = urllib2.Request(status_url)
>    print request
>    auth = base64.encodestring('Consumer key:Consumer secret')[:-1]
>    request.add_header('Authorization', 'basic %s' % auth)
>    firehose = urllib2.urlopen(request)
>    for tweet in firehose:
>        print tweet
>
>    firehose.close
>
> when printing the request i have  500 error, it is not reachable.
>
> do you have an idea why?
>
> --
> Twitter developer documentation and resources: http://dev.twitter.com/doc
> API updates via Twitter: http://twitter.com/twitterapi
> Issues/Enhancements Tracker:
> http://code.google.com/p/twitter-api/issues/list
> Change your membership to this group:
> http://groups.google.com/group/twitter-development-talk?hl=en
>

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk?hl=en

Reply via email to