ueberauth_facebook icon indicating copy to clipboard operation
ueberauth_facebook copied to clipboard

:connect_timeout

Open aliabbas-2012 opened this issue 7 years ago • 2 comments

OAuth2.Error at GET /auth/facebook/callback :connect_timeout I tested on different machine and browsers its still happening

aliabbas-2012 avatar Apr 17 '17 10:04 aliabbas-2012

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])

Betree avatar Jun 21 '17 08:06 Betree

Will check if that works.

Hajto avatar Aug 04 '17 08:08 Hajto