Skip to content

Rescue Faraday::TimeoutError

Created by: stanhu

If Faraday hits a timeout, it will raise a Faraday::TimeoutError. Re-raise this as an OAuth2::ConnectionError, reusing the logic in https://github.com/oauth-xx/oauth2/pull/549.

This came up in https://github.com/omniauth/omniauth-oauth2/pull/129.

Merge request reports

Loading