oauth2 deadline exceeded errors?

155 views
Skip to first unread message

Paul Ceccato

unread,
Nov 17, 2013, 11:48:48 PM11/17/13
to google-a...@googlegroups.com

I'm using the excellent simpleauth module to manage authentication on my app engine application, it works perfectly for facebook, twitter and yahoo logins, and used to work fine for google as well.

The trouble is google oauth2 authentication seems to be broken for me over the last few weeks. I get these exceptions:

DeadlineExceededError: Deadline exceeded while waiting for HTTP response from URL: https://accounts.google.com/o/oauth2/token

Even the simpleauth demo app is throwing this error for me:



I was hoping it was an temporary glitch, but it seems to be ongoing for me. Very dissappointing, I would hate to be relying on this authentication service for a commercial application.

Does anyone know what gives? Or how I can resolve this?

regards

Paul

Vinny P

unread,
Nov 19, 2013, 1:13:26 AM11/19/13
to google-a...@googlegroups.com
On Sun, Nov 17, 2013 at 10:48 PM, Paul Ceccato <pcec...@gmail.com> wrote:
I'm using the excellent simpleauth module to manage authentication on my app engine application, it works perfectly for facebook, twitter and yahoo logins, and used to work fine for google as well. The trouble is google oauth2 authentication seems to be broken for me over the last few weeks.
DeadlineExceededError: Deadline exceeded while waiting for HTTP response from URL: https://accounts.google.com/o/oauth2/token
I was hoping it was an temporary glitch, but it seems to be ongoing for me. Very dissappointing, I would hate to be relying on this authentication service for a commercial application.



Hello Paul,

Occasionally Google authorization experiences some issues, but it certainly shouldn't be having trouble for that long. You probably have a different problem. First off, are you using a single account for testing? Can you try using another Google account for testing purposes? Also, are you logged into multiple Google accounts simultaneously? If so, log out of all of them before logging into one. 

In addition, can you provide a more detailed stack trace for your error?
 
 
-----------------
-Vinny P
Technology & Media Advisor
Chicago, IL

App Engine Code Samples: http://www.learntogoogleit.com

Paul Ceccato

unread,
Nov 25, 2013, 6:53:27 PM11/25/13
to google-a...@googlegroups.com
Hi,

Sorry for the delayed repsonse...

The error happens with my account, and I am also getting numerous reports from my users about it so it is definitely not limited to my account. I am currently advising them to use twitter or facebook to authenticate with my application instead as their authentication mechanisms seem to be much more reliable and robust than google at the moment.

The issue has been intermittently ongoing for at least three weeks now.

Here is a stack trace from today, the exception is thrown long before the 60 second url fetch timeout occurs:

unhandled exception
Traceback (most recent call last):
  File "/base/data/home/runtimes/python27/python27_lib/versions/third_party/webapp2-2.5.1/webapp2.py", line 570, in dispatch
    return method(*args, **kwargs)
  File "lib/simpleauth/handler.py", line 154, in _auth_callback
    user_data, auth_info = meth(provider, *cfg[-1:])
  File "lib/simpleauth/handler.py", line 228, in _oauth2_callback
    headers={'Content-Type': 'application/x-www-form-urlencoded'}
  File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/api/urlfetch.py", line 270, in fetch
    return rpc.get_result()
  File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/api/apiproxy_stub_map.py", line 612, in get_result
    return self.__get_result_hook(self)
  File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/api/urlfetch.py", line 410, in _get_fetch_result
    'Deadline exceeded while waiting for HTTP response from URL: ' + url)
DeadlineExceededError: Deadline exceeded while waiting for HTTP response from URL: https://accounts.google.com/o/oauth2/token

regards,

Paul

Vinny P

unread,
Nov 27, 2013, 1:45:15 AM11/27/13
to google-a...@googlegroups.com
On Mon, Nov 25, 2013 at 5:53 PM, Paul Ceccato <pcec...@gmail.com> wrote:
Sorry for the delayed response. The error happens with my account, and I am also getting numerous reports from my users about it so it is definitely not limited to my account. I am currently advising them to use twitter or facebook to authenticate with my application instead as their authentication mechanisms seem to be much more reliable and robust than google at the moment.
The issue has been intermittently ongoing for at least three weeks now.
Here is a stack trace from today, the exception is thrown long before the 60 second url fetch timeout occurs:
unhandled exception    'Deadline exceeded while waiting for HTTP response from URL: ' + url)
DeadlineExceededError: Deadline exceeded while waiting for HTTP response from URL: https://accounts.google.com/o/oauth2/token


Are you setting an explicit urlfetch timeout or letting simpleauth use the default timeout? If you're using the default timeout, try explicitly setting a long timeout with socket.setdefaulttimeout() during init (or at the beginning of handling the incoming request). Also, what happens if you upload a Google signin sample application ( https://developers.google.com/+/photohunt/python ) and attempt to authenticate in? Does the same issue occur?

And if nothing else works, file a production issue on the App Engine tracker: https://code.google.com/p/googleappengine/issues/entry?template=Production%20issue
Reply all
Reply to author
Forward
0 new messages