2013-04-08 42 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