2013-04-08 27 views
0

我按照GAE上这个谷歌任务API教程:https://developers.google.com/appengine/articles/python/getting_started_with_tasks_apiGAE谷歌的任务API“错误:未找到”

我已经试过,他们所做的一切。

我已经在路线中添加此:

     ('/mytask', mytask), 
         ('/mytask'+ decorator.callback_path, decorator.callback_handler()), 

但我收到以下错误:

Error: Not Found 

The requested URL /oauth2callback?state=http://sadaf2605.appspot.com/mytask:rBFVjEpyDnAPoYsm-J6COToxMzY1NDM0ODg4&code=4/DVdE2clKgg1yfLTcFL9AdGzszVvj.snlDhp_QkQYZgrKXntQAax1q0onUewI was not found on this server. 

你们可以告诉我在哪里可以期待一个错误?

回答

0

您没有将处理程序附加到正确的URL:您将它作为“/ mytask”的前缀。如果您不希望将其用于默认/ oauth2callback,则在创建OAuth2Decorator

时,您需要通过 callback_path