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

Request: Implementing retry mechanism on throttle failures #12

Closed
timr11 opened this issue May 29, 2024 · 4 comments
Closed

Request: Implementing retry mechanism on throttle failures #12

timr11 opened this issue May 29, 2024 · 4 comments
Assignees

Comments

@timr11
Copy link

timr11 commented May 29, 2024

My organization is subscribed to the Business tier. We would like to perform large batches of conversions in parallel. In theory we have unlimited bandwidth, I'd like to implement a retry policy on 503 throttle failures. In this library, there doesn't appear to be a way of accessing the HTTP response after a call is made to the ConvertAPI REST API. It would be helpful to expose the HTTP response to allow for custom error handling.

@tomasr78 tomasr78 assigned tomasr78 and JonasJasas and unassigned tomasr78 May 29, 2024
@JonasJasas
Copy link
Contributor

We will internally discuss this and will let you know about the decision.

@JonasJasas
Copy link
Contributor

Would it be for you acceptable, for now to use ConvertPath method to get an error? https://github.com/ConvertAPI/convertapi-go/blob/master/examples/simple/main.go

@JonasJasas
Copy link
Contributor

Every public method on Result struct returns errors, you can use it too to get an error.

@tomasr78
Copy link

Is your question answered, @timr11?

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

3 participants