toggl / toggl_api_docs

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

400 Bad Request #296

Closed danhowellnz closed 6 years ago

danhowellnz commented 6 years ago

We have scheduled requests calling detailed reports. They normally work fine, so everything is set up right. But, once a day or so we get the following response:

400 Bad Request nginx

Example URL https://www.toggl.com/reports/api/v2/details?user_agent=toggl_at_ccp.io&workspace_id=XXXX&since=2017-01-31&until=2018-01-27&page=26

dreams-and-thoughts commented 6 years ago

We are also getting the same response randomly..

<head><title>400 Bad Request</title></head>
<body bgcolor="white">
<center><h1>400 Bad Request</h1></center>
<hr><center>nginx</center>
</body>
</html>

Multiple daily requests of the same configuration succeed, then one will fail, for example, doing a PUT request to: https://www.toggl.com/api/v8/time_entries/...

This has only started for us in the past month or so, and we haven't been able to get anything further on it thus far.

We received one of these responses at: UTC: 14 MAY 17:01

I've added some more debug logs to try and capture more output, but not sure if that will be very helpful.

shedokan commented 6 years ago

Hi, this sounds like a specific issue that requires a more private discussion, please contact our support team at support@toggl.com.

Please attach the failed request's returned headers(atleast the X-Request-ID header), the specific user you're having trouble with and any other data you find helps.

Thanks

VeljkoTN commented 6 years ago

case/698615

DragosMocrii commented 6 years ago

I have the same issue. This happens occasionally I don't find a pattern for the bahavior. I am also throttling the amount of API calls to one every 1500ms, so it shouldn't be an issue with too many requests per minute

danhowellnz commented 6 years ago

We get the same error in the browser as well every now and then. I suppose your servers are timing out