You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The underlying connection can close, which normally raises a Faraday ConnectionFailed error.
vendor/ruby-2.5.3/lib/ruby/2.5.0/net/protocol.rb:189:in`rbuf_fill': end of file reached (Faraday::ConnectionFailed) from vendor/ruby-2.5.3/lib/ruby/2.5.0/net/protocol.rb:157:in `readuntil' from vendor/ruby-2.5.3/lib/ruby/2.5.0/net/protocol.rb:167:in `readline'fromvendor/ruby-2.5.3/lib/ruby/2.5.0/net/http/response.rb:40:in`read_status_line' from vendor/ruby-2.5.3/lib/ruby/2.5.0/net/http/response.rb:29:in `read_new'
[snip]
Recently, we saw some internal app fail to authenticate in a new fashion which stress a new failure mode to these request.
Options that I I see:
We rescue in the omniauth-shopify-oauth2 as the oauth code path in shopify-app is merely asking for a token and shouldn't care about why it failed
We push this concern up to the superclass omniauth-oauth2 to make sure Faraday errors are rescued
We let it bubble up to shopify-app and rescue it there
In any event, this should not reach Shopify apps without being first handled.
The text was updated successfully, but these errors were encountered:
We expect that the underlying omniauth gem will reliably raise a connection errors with a
fail
when we callbuild_access_token
:omniauth-shopify-oauth2/lib/omniauth/strategies/shopify.rb
Line 120 in f5a42a4
https://github.com/omniauth/omniauth-oauth2/blob/10e1a42c7a49ad4488fe9085f814681e8848fbf6/lib/omniauth/strategies/oauth2.rb#L66-L83
The underlying connection can close, which normally raises a Faraday ConnectionFailed error.
Recently, we saw some internal app fail to authenticate in a new fashion which stress a new failure mode to these request.
Options that I I see:
omniauth-shopify-oauth2
as the oauth code path inshopify-app
is merely asking for a token and shouldn't care about why it failedomniauth-oauth2
to make sure Faraday errors are rescuedshopify-app
and rescue it thereIn any event, this should not reach Shopify apps without being first handled.
The text was updated successfully, but these errors were encountered: