toggl / toggl_api_docs

Documentation for the Toggl API
1.4k stars 235 forks source link

Wrong error code on exceed rate limit #311

Closed risentveber closed 2 years ago

risentveber commented 6 years ago

Hi,

just test via bash and httpie:

for i in {1..100}
do
  http -a <token>:api_token https://toggl.com/reports/api/v2/summary\?<params_goes_here>
done;

after several successful responses get exceed rate limit return 400 instead of 429 which contradicts your documentation

HTTP/1.1 400 Bad Request
Alt-Svc: clear
Content-Length: 166
Content-Type: text/html
Date: Wed, 30 May 2018 13:24:18 GMT
Instance: web3
Server: nginx
Set-Cookie: GCLB=CLbCtKLpqofC7QE; path=/; HttpOnly
Strict-Transport-Security: max-age=15552000; includeSubDomains
Via: 1.1 google
X-Content-Type-Options: nosniff
X-Request-ID: 8f1fa5acb8defd92ee2938da1b92e254
X-We-are-hiring: https://toggl.com/jobs/

<html>
<head><title>400 Bad Request</title></head>
<body bgcolor="white">
<center><h1>400 Bad Request</h1></center>
<hr><center>nginx</center>
</body>
</html>
wjglerum commented 6 years ago

We see the same problems since last week, a lot of 400 Bad requests.

DragosMocrii commented 6 years ago

+1

GarPit commented 6 years ago

+1

joeriharleman commented 2 years ago

Hello @risentveber!

Thank you for submitting your issue. Unfortunately this repository is largely unmaintained, which means issues remain unseen and do not get dealt with in a respectable manner. We're sorry for not getting back to you sooner.

This issue has been around for a long time so we will close it for now, but please let our excellent 24/5 support staff know you if you have any unresolved issues with our platform, documentation or APIs. They're also really good at noting down feature requests for our development teams. Please find them on our support page by clicking the little icon in the bottom right corner of the screen.

Kind regards, Joeri from Toggl