Empty 400 return


While making any request to v1.1 of the api, an empty 400 is returned. Another user has a similar issue on SO (http://stackoverflow.com/questions/28133384/twitter-api-app-only-authorization-error). All requests are made using Application-only Authentication.

Primary problem is that there is no error response. I’ve seen similar post on the forums, but no answers

(i) Request Bearer key:

  • Method : POST

  • url: https://api.twitter.com/oauth2/token

  • Request Headers:

    ‘Content-Length’: ‘29’,
    ‘Accept-Encoding’: ‘gzip, deflate’,
    ‘Accept’: ‘/’,
    ‘User-Agent’: ‘twitter app’,
    ‘Connection’: ‘keep-alive’,
    ‘Content-Type’: ‘application/x-www-form-urlencoded;charset=UTF-8’,
    ‘Authorization’: ‘Basic $base_64_key’

  • Request Body:


  • Response headers:

    content-length’: ‘155’,
    ‘x-tsa-request-body-time’: ‘0’,

  • Response body:


(ii) Request rate_limit_status

  • Method: GET

  • Request url: https://api.twitter.com/1.1/application/rate_limit_status.json?resources=statuses

  • Request Headers:

    ‘Content-Length’: ‘18’,
    ‘Accept-Encoding’: ‘gzip, deflate’,
    ‘Accept’: ‘/’,
    ‘User-Agent’: ‘twitter app’,
    ‘Connection’: ‘keep-alive’,
    ‘Content-Type’: ‘application/x-www-form-urlencoded’,
    ‘Authorization’: u’Bearer $token’

  • Response Headers:

    ‘date’: ‘Wed, 25 Feb 2015 17:09:40 UTC’,
    ‘content-length’: ‘0’,
    ‘x-connection-hash’: ‘a329243757cf2c1141ea45c7c9935a8e’,
    ‘server’: ‘tsa_b’