Problems with sample.json endpoint


I’ve been trying to use the sample.json endpoint, but not matter what I try, I cannot get anything back from it. To be more specific, no matter whether I try to instantiate it through code, cURL, or the developer console it is incredibly slow and returns either Unauthorized or in the case of the dev console it has the following:

HTTP/1.1 502 Bad Gateway

  "fault":  {
    "faultstring": "Body buffer overflow",
    "detail":  {
      "errorcode": "protocol.http.TooBigBody"

I am using OAuth 1.0 for all of them. The error from the dev console could be attributed to payload size, but I can’t explain the cURL error. It’s literally a verbatim copy/paste from the OAuth tool. Here’s an example response:

* Connected to ( port 443 (#0)
* TLS 1.2 connection using TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA
* Server certificate:
* Server certificate: VeriSign Class 3 Secure Server CA - G3
* Server certificate: VeriSign Class 3 Public Primary Certification Authority - G5
> GET /1.1/statuses/sample.json HTTP/1.1
> User-Agent: curl/7.37.1
> Host:
> Accept: */*
> Authorization: OAuth oauth_consumer_key="tcx1BiSTltsZOlFXySr7SP0q0", oauth_nonce="41edfc65de168da3b2851780faf8c88b", oauth_signature="W0JIShkQDGLTfsG%2BNxXC9O3DPCM%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1426206079", oauth_version="1.0"
< HTTP/1.1 401 Authorization Required
< cache-control: must-revalidate,no-cache,no-store
< connection: close
< content-length: 266
< content-type: text/html
< date: Fri, 13 Mar 2015 00:21:28 GMT
* Server tsa is not blacklisted
< server: tsa
< www-authenticate: OAuth realm="Firehose"
< x-connection-hash: 08d1bcfec107babd765728c53e4207f5
<html>\n<head>\n<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>\n<title>Error 401 Unauthorized</title>
<h2>HTTP ERROR: 401</h2>
<p>Problem accessing '/1.1/statuses/sample.json'. Reason:
<pre>    Unauthorized</pre>

The endpoint is I’ve also tried it with different applications, too.


Never mind, got it now!