OAuth 2 and permanent HTTP 500 error

2,585 views
Skip to first unread message

Alexander Sedov

unread,
Jul 10, 2012, 10:34:38 PM7/10/12
to oauth...@googlegroups.com
I think has found cause of the error 500. The error occurs when clients and servers are located in different geographical regions. I'm in Thailand, but the server is located in Germany. I click the link and confirm access, then I'm redirected to my server in Germany (redirect_uri). The server successfully receives an authorization code, but the request token ends with HTTP error 500 in more than 90% of cases.

I checked the IP address for accounts.google.com. Thailand, accounts.google.com = 209.85.175.84. Germany accounts.google.com = 209.85.148.84. I added the following entry "209.85.175.84 accounts.google.com" in the file /etc/hosts on the server in Germany and did not receive any HTTP 500 error. After removal of this entry, I again got errors.

This means that there is problems synchronization accounts.google.com in different regions. I found a lot of unresolved topics at groups.google.com related to this issue.

Shahil Sham

unread,
Jul 28, 2012, 8:09:25 AM7/28/12
to oauth...@googlegroups.com
I've been battling with the same issue for some time. Being a newbie, configuring this has been a challenge. I wanted to ask you one doubt, as I didn't get how you found the IP address for accounts.google.com for Thailand and Geramany.
In my case, i'm working from India and my VPS is in UK. How would I identify the IP of accounts.google.com for India.
Eagerly awaiting your reply.

Alexander Sedov

unread,
Jul 28, 2012, 8:37:47 AM7/28/12
to oauth...@googlegroups.com
Just use the command "ping accounts.google.com or "nslookup accounts.google.com". My problem with HTTP error 500 is not resolved until now, some people asked for the details I gave them, but I have not received a response or resolution of problem. I have implemented support for 5 other OAuth 2.0 providers and they all work fine, so I'm sure that this problem with Google servers.

суббота, 28 июля 2012 г., 19:09:25 UTC+7 пользователь Shahil Sham написал:

Shahil Sham

unread,
Jul 28, 2012, 9:59:40 AM7/28/12
to oauth...@googlegroups.com
Adding a hosts entry has solved my authentication problem. I have some more issues to resolve before I get it up and running.
Thanks for the quick response. Appreciate it. :)

Andrew Armstrong

unread,
Aug 3, 2012, 7:42:24 AM8/3/12
to oauth...@googlegroups.com
I am getting this problem as well. I am located in Australia, but my web server is located in West Europe.

Are any Google-ers monitoring this thread? I can definitely reproduce this problem without issue.

- Andrew

devas

unread,
Aug 11, 2012, 4:15:34 PM8/11/12
to oauth...@googlegroups.com
I am getting the same HTTP 500 error for more than 2 months. I tried specifying the IP of accounts.google.com but chrome throws a strict warning and the request fails.
I finally had to drop google login from my webapp.

jim Jimjim

unread,
Oct 1, 2012, 8:54:31 PM10/1/12
to oauth...@googlegroups.com
Ive just come across this too. Is this going to get fixed? Its abit stupid as i want to roll out a script using this api but its semi useless when its usa hosting = usa based google account, etc etc
Reply all
Reply to author
Forward
0 new messages