Skip to content

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

@makmic

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!

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