Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Thu Jul 10, 2014 6:13 pm 
Offline
Senior Newbie

Joined: Thu Jul 10, 2014 3:31 pm
Posts: 9
Hello.
PLEASE, dont answer here. delete this post. sorry for the inconvenience. the answer is in the same post at Servers folder
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


I tried to see if the network is working correctly:

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 can see that there was a timeout. I;m guessing that my network isnt allowing me to call that url.

If the network isn't allowing me to connect 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?

Just in case, 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 ...



If anyone could help, that would be great.
Thanks in advance.
Jenia


Top
   
PostPosted: Thu Jul 10, 2014 7:24 pm 
Offline
Senior Member
User avatar

Joined: Sun Dec 27, 2009 11:12 pm
Posts: 1038
Location: Colorado, USA
Don't double post.

_________________
Either provide enough details for people to help, or sit back and listen to the crickets chirp.
Security thru obscurity is a myth - and really really annoying.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group