CloudFront error when calling Management Unit Schedules API

Hi,

We are using the API call - /api/v2/workforcemanagement/managementunits/{managementUnitId}/schedules/search

It used to return records without any problems, but recently we have been receiving 429 errors and seeing "Error from cloudfront" in the Response Header.

I understand that 429 are rate limit errors but I do not understand why we are receiving cloudfront error along with it.

Here is the cloudfront error in the ResponseHeader:
{"Name":"X-Cache","Value":"Error from cloudfront","Type":3,"DataFormat":2,"ContentType":null}

Any help would be much appreciated.

You can find more information about rate limits, including best practices for handling being rate limited, here: https://developer.genesys.cloud/api/rest/rate_limits. If you can provide a correlation ID for the response, I can see if there's any additional information available.

Unrelated to the 429s, I wanted to chime in and point out that the route you're using (POST /api/v2/workforcemanagement/managementunits/{managementUnitId}/schedules/search) is actually deprecated.

The preferred route to use would be one of

  1. POST /api/v2/workforcemanagement/businessunits/{businessUnitId}/agentschedules/search
    for searching across management units within a business unit or
  2. POST /api/v2/workforcemanagement/managementunits/{managementUnitId}/agentschedules/search
    to continue to search solely within a single management unit

It doesn't look like this would have anything to do with the 429s you're seeing, but the new routes are better optimized for performance.

As Tim Smith mentioned above, to do further investigation into the 429s you're receiving we would need a correlationId

Hi Tim,

Thanks for your response.

We have a retry function set in place which is dependent on Retry-After as mentioned in the link you gave. However, this particular error does not contain a Retry-After in the header.

I am more curious as to why we are receiving an "error in cloudfront" in the response header. It would be much appreciated if you could shed more light to that.

Here is the correlation ID by the way, 8bd35fca-95d5-4d8c-9055-d3f302c699be

Thanks and regards.

Thanks for this. Updating the deprecated API's is in our roadmap.

I'm not seeing any traces for that correlation ID. If you require further investigation into that response, please open a case with Genesys Cloud Care to continue investigating.

1 Like

Hi Tim,

Thanks again for looking into this.

Any idea on the cloudfront error?

Please open a case with Genesys Cloud Care to continue investigating as this is a product issue and not a typical usage issue and cannot be investigated via the forum.

Ok thanks. Appreciate the help.

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.