Hello.
I'm running python-social-auth to get the oauth2 functionality in my app.
When I try to login using google, I get redirected (after i filled in the form) here:
Quote:
/complete/google-oauth2/
And then the connection times out.
Quote:
504 Gateway Time-out
That;s from the error log:
Quote:
2014/07/10 19:21:44 [error] 15072#0: *293 upstream timed out (110: Connection timed out) while reading response header from upstream, client:..
That's from the access log:
Quote:
xxx.xxx.xxx.xxx - - [10/Jul/2014:19:20:44 +0000] "GET /login/google-oauth2/ HTTP/1.1" 302 5 "-" "Mozilla/5.0 (Linux; Android ...
xxx.xxx.xxx.xxx - - [10/Jul/2014:19:21:44 +0000] "GET /complete/google-oauth2/?state=xxxxxxxxxxxxxxxx&code=xxxxxxxxxxxxxxxxxxxxxxxxxxx HTTP/1.1" 504 596 "-" "Mozilla/5.0 (Linux; Android ...
xxx.xxx.xxx.xxx - - [10/Jul/2014:19:21:44 +0000] "GET /favicon.ico HTTP/1.1" 404 4541 "-" "Mozilla/5.0 (Linux; Android ...
I tried to see if the server can connect to google's api. I thnk it can't:
Code:
wget https://accounts.google.com/o/oauth2/token
--2014-07-10 15:20:59-- https://accounts.google.com/o/oauth2/token
Resolving accounts.google.com (accounts.google.com)... xxxx:xxxx:xxxx:xxx::xx, xx.xxx.xxx.xx
Connecting to accounts.google.com (accounts.google.com)|xxxx:xxxx:xxxx:xxx::xx|:xxx... failed: Connection timed out.
Connecting to accounts.google.com (accounts.google.com)|xx.xxx.xxx.xx|:xxx... connected.
HTTP request sent, awaiting response... 405 Method Not Allowed
2014-07-10 15:23:06 ERROR 405: Method Not Allowed.
I'm not sure what this means exactly. But I;m guessing that my network isnt allowing me to call that url.
The time on my server was first the default, and then i switched it to the one you see there which is the one in my home.
If the network isn't allowing me to connec to Google API, how can i make it allow me to do it? If that;s not the problem, then what might the problem be?
If anyone could help, that would be great.
Thanks in advance.
Jenia