Streaming API Sample - HTTP 502 bad gateway


#1

I’m new to the Twitter API, and I’m trying to use the Console to better understand how the various GETs/POSTs work.

I’ve been able to use the Search API just fine, but when I try to grab a sample of tweets using the Streaming API (GET https://stream.twitter.com/1.1/statuses/sample.json) I get the following error in the console. At first I thought the site was temporarily down, but this has been happening for a few days now. What’s going on?

HTTP/1.1 502 Bad Gateway
Content-Length:
98
Content-Type:
application/json

{
“fault”: {
“faultstring”: “Body buffer overflow”,
“detail”: {
“errorcode”: “protocol.http.TooBigBody”
}
}
}


#2

The console on this site isn’t well-suited for the streaming API, as the connection is continuous and the simple third party tool that powers the console isn’t setup to consume that kind of connection.

I recommend using twurl to explore such APIs instead: https://github.com/marcel/twurl