ConvertAPI / convertapi-library-go

A Go library for the ConvertAPI
https://www.convertapi.com
Other
14 stars 7 forks source link

Request: Implementing retry mechanism on throttle failures #12

Open timr11 opened 3 months ago

timr11 commented 3 months ago

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.

JonasJasas commented 3 months ago

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

JonasJasas commented 3 months ago

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 commented 3 months ago

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

tomasr78 commented 1 month ago

Is your question answered, @timr11?