Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rescue Faraday::ConnectionFailed #549

Merged
merged 1 commit into from Sep 9, 2021
Merged

Rescue Faraday::ConnectionFailed #549

merged 1 commit into from Sep 9, 2021

Conversation

nikkypx
Copy link
Contributor

@nikkypx nikkypx commented Jun 13, 2021

Attempts to fix #152

  • Adds a new error class to re-raise Faraday::ConnectionFailed as OAuth2::ConnectionFailed

Copy link
Member

@pboling pboling left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@pboling
Copy link
Member

pboling commented Sep 9, 2021

I need to figure out why CI isn't running...

Copy link
Member

@pboling pboling left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@pboling pboling self-assigned this Sep 9, 2021
@pboling pboling added the bug label Sep 9, 2021
@pboling pboling added this to the 2.0.0 milestone Sep 9, 2021
@pboling pboling merged commit b575388 into oauth-xx:master Sep 9, 2021
@pboling pboling added the in Changelog Has been added to Changelog label Mar 28, 2022
stanhu added a commit to stanhu/oauth2 that referenced this pull request Jun 23, 2022
If Faraday hits a timeout, it will raise a `Faraday::TimeoutError`.
Re-raise this as an `OAuth2::ConnectionError`, reusing the logic in
oauth-xx#549.

This came up in omniauth/omniauth-oauth2#129.
stanhu added a commit to stanhu/oauth2 that referenced this pull request Jun 23, 2022
If Faraday hits a timeout, it will raise a `Faraday::TimeoutError`.
Re-raise this as an `OAuth2::ConnectionError`, reusing the logic in
oauth-xx#549.

This came up in omniauth/omniauth-oauth2#129.
stanhu added a commit to stanhu/oauth2 that referenced this pull request Jun 23, 2022
If Faraday hits a timeout, it will raise a `Faraday::TimeoutError`.
Re-raise this as an `OAuth2::ConnectionError`, reusing the logic in
oauth-xx#549.

This came up in omniauth/omniauth-oauth2#129.
stanhu added a commit to stanhu/oauth2 that referenced this pull request Jun 24, 2022
If Faraday hits a timeout, it will raise a `Faraday::TimeoutError`.
Re-raise this as an `OAuth2::ConnectionError`, reusing the logic in
oauth-xx#549.

This came up in omniauth/omniauth-oauth2#129.
pboling pushed a commit that referenced this pull request Jun 24, 2022
* Rescue Faraday::TimeoutError

If Faraday hits a timeout, it will raise a `Faraday::TimeoutError`.
Re-raise this as an `OAuth2::ConnectionError`, reusing the logic in
#549.

This came up in omniauth/omniauth-oauth2#129.

* Break out OAuth2::Client#request

This resolves several Rubocop lint errors.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug in Changelog Has been added to Changelog
Projects
None yet
2 participants