code4lib / ruby-oai

a Ruby library for building OAI-PMH clients and servers
MIT License
62 stars 43 forks source link

Have client retry GET if it receives a 503 #29

Closed jdeerin1 closed 2 years ago

jdeerin1 commented 11 years ago

If client.get receives a 503, it will retry 3 times before giving up, and throw an exception that indicates what happened. If a failure status code other than 503 is received, it just throws the exception indicating that. The previous behavior if a 503 or other error code was received was to return and empty result without any error message.

jrochkind commented 4 years ago

Hi, I know this is really old. I am now a committer/owner of this project. Are you still interested in this, @jdeerin1 ?

barmintor commented 2 years ago

We don't have a clean way to navigate the various faraday dependencies here, but the installing application can configure a faraday client to handle this according to its needs. This has been documented in the README in https://github.com/code4lib/ruby-oai/commit/b75b61afc5fa9f8e3881748119077a688d25678f (now in the default branch).