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

:connect_timeout #35

Open
aliabbas-2012 opened this issue Apr 17, 2017 · 2 comments
Open

:connect_timeout #35

aliabbas-2012 opened this issue Apr 17, 2017 · 2 comments

Comments

@aliabbas-2012
Copy link

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

@Betree
Copy link

Betree commented Jun 21, 2017

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

@Hajto
Copy link

Hajto commented Aug 4, 2017

Will check if that works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants