V1 analytics - no rate-limit-reset header

v1
analytics

#1

Hi! I have noticed that I get SERVICE_UNAVAILABLE errors for analytics calls, but no header about rate limiting is returned and so I can’t know when to retry the call.

// request
GET https://ads-api.twitter.com/1/stats/jobs/accounts/18ce546xgt9?count=500&job_ids=733417853093744640

// response
{"errors":[{"code":"SERVICE_UNAVAILABLE", "message":"Service unavailable due to request timeout; please try the request again later"}]

// response headers
"content_disposition":"attachment; filename=json.json",
"content_encoding":"gzip",
"content_length":"156",
"content_type":"application\/json;charset=utf-8",
"date":"Thu, 19 May 2016 22:06:17 GMT",
"server":"tsa_b",
"set_cookie":"guest_id=v1%3A146369557742469557; Domain=.twitter.com; Path=\/; Expires=Sat, 19-May-2018 22:06:17 UTC",
"strict_transport_security":"max-age=631138519",
"x_access_level":"read-write",
"x_api_version":"1.0",
"x_connection_hash":"0c97e66d58549d569e6cbc804ccf8784",
"x_content_type_options":"nosniff",
"x_frame_options":"SAMEORIGIN",
"x_response_time":"83",
"x_runtime":"0.013546",
"x_transaction":"ac9b1fcefc719371",
"x_xss_protection":"1; mode=block"

#2

Now I notice that a retry_after response header is present, but it’s equal to the date header, so it’s still of no use.