Skip to content

Is there a way to deal with Freshdesk rate limits on API calls? #91

@xedus

Description

@xedus

1- Is there away to deal with Freshdesk API call rate limit?
2-Is there away to get the "requester" information by default when calling list_tickets or filter_tickets rather than call get_ticket(ticket.id, "requester")
3-How can I have access to the underlying response header?

After calling filter_tickets() I need to loop on the list of returned tickets and call requesterInfo = fd_api.tickets.get_ticket(ticket.id, "requester") in order to get the requester information. this more often than not results in the following error:

freshdesk.v2.errors.FreshdeskRateLimited: 429 Rate Limit Exceeded: API rate-limit has been reached until 9 seconds. See http://freshdesk.com/api#ratelimit

I have added a delay between calls but it does not always work. the only way to make sure the rate limit is not hit is to reduce the rate to 20 or fewer calls per minute which is too long for my case. the rate and the remaining calls are returned with every response header but I don't know how to read it in the code. This library does not seem to expose this number either.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions