Skip to content

Include Net::HTTPServiceUnavailable for the debounced retry logic #11

Description

@makmic

Hi,

in our experience Deepl's API is not too stable and will raise Net::HTTPServiceUnavailable quite frequently occasion.
The client currently already implements a retry logic with execute_request_with_retries, but that only catches errors of these types:

  • Net::HTTPBadResponse
  • Net::HTTPServerError
  • Net::HTTPFatalError
  • Timeout::Error
  • SocketError

Could you expose that array to be easily patchable and/or extend the list by Net::HTTPServiceUnavailable?

Thanks!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions