Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No Exception found if Zendesk API limit exceeds #477

Open
meharpreet-bst opened this issue Jun 2, 2021 · 0 comments
Open

No Exception found if Zendesk API limit exceeds #477

meharpreet-bst opened this issue Jun 2, 2021 · 0 comments

Comments

@meharpreet-bst
Copy link

meharpreet-bst commented Jun 2, 2021

I was using the zenpy wrapper to update tickets one by one in bulk. After 100 tickets, tickets are not updated due to zendesk API limits.
There is no error coming up in the script. Is there any way we can access the API Exception error?

    for index, ticket in enumerate(zenpy_client.search(sheet_query)):
        try:
            logging.info(str(index)+"::"+str(ticket.id)+"::"+str(tags_list[index]))
            ticket.tags.extend([tags_list[index],'assigned'])
            zenpy_client.tickets.update(ticket)
        except IndexError:
            logging.info('Total tickets to be assigned have been assigned.')
            break
    logging.info("Sleeping for 1 minute")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant