Discussions
incomprehensible bug
When I throw
POST https://dialpad.com/api/v2/stats:
{
"days_ago_end": 1,
"days_ago_start": 1,
"timezone": "UTC",
"coaching_group": true,
"coaching_team": true,
"export_type": "records",
"group_by": "user",
"is_today": false,
"stat_type": "calls"
}
I receive
{
"already_started": true,
"request_id": "fa8daf6c-cbe3-4998-9ef5-bf0dabd5abd5"
}
In contrast
GET https://dialpad.com/api/v2/stats bug returning the following error:
GET https://dialpad.com/api/v2/stats/fa8daf6c-cbe3-4998-9ef5-bf0dabd5abd5 resulted in a 400 Bad Request response:
Which means POST https://dialpad.com/api/v2/stats: returns an invalid request_id while the status code is 200
I do not understand anything anymore.
As it is an asynchronous request, I put a sleep(5) after each 400 error encountered then I recheck the status, but nothing works.
It would have been much easier to manage to return a list of data with pagination....