ueberauth_facebook
ueberauth_facebook copied to clipboard
:connect_timeout
OAuth2.Error at GET /auth/facebook/callback :connect_timeout I tested on different machine and browsers its still happening
I sometimes run into this error too on localhost when my connection is slow.
Ueberauth_facebook uses oauth2 Request
module, which uses hackney
with a default timeout of 5 seconds. As oauth2 Request
module supports recv_timeout
option, it would be nice to have it in ueberauth_facebook as well.
We could do it by adding a :timeout
setting in config.exs
that would be passed to get_token!
Ueberauth.Strategy.Facebook.OAuth.get_token!([code: code], opts, [], [timeout: timeout_value])
Will check if that works.