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

Handle 'Too Many Requests' http response while using ITicketResource.PostAsync #148

Open
gmanvel opened this issue Jan 9, 2019 · 1 comment

Comments

@gmanvel
Copy link

gmanvel commented Jan 9, 2019

I'm using ITicketResource to create tickets:
ITicketResource ticketResource = GetTicketResource(); ZendeskApi.Contracts.Models.Ticket ticket = CreateTicket(); var result = await ticketResource .PostAsync(new ZendeskApi.Contracts.Requests.TicketRequest {Item = ticket}).ConfigureAwait(false);

If Zendesk returns 'Too Many Requests' 429 response, this call throws HttpException.
But I can't find a way to get response header Retry-After which specifies time to wait before next retry.

Is there any way to get this info using ITicketResource, or should I handle http request/response with Zendesk myself ?

I'm using ZendeskApi.Client v. 2.0.28.

@mikerogers123 mikerogers123 added this to To do in General maintenance via automation Jun 30, 2022
@mikerogers123
Copy link
Contributor

Hi @gmanvel, I have created a TODO card to investigate this. Our team has recently taken ownership of the repo so it will be integrated into our normal workflow for prioritisation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

2 participants