405不允许的方法此资源appengine facebook App不允许使用POST方法 [英] 405 Method Not Allowed The method POST is not allowed for this resource appengine facebook App
问题描述
405方法不允许方法POST不是允许这个
资源。
class MainHandler(webapp2.RequestHandler):
def get(self):#do stuff here
def post(self):pass
app = webapp2.WSGIApplication([
('/ yyy /',MainHandler),
(' ',anotherHandler),
],debug = True)
:appengine log中没有这样的错误。
它正在尝试对您的应用程序进行POST,但是没有配置处理程序接收它
你有你的 GET
处理程序:
def get(self):
dostuff
你还需要一个 POST
hander:
def post自我):
dostuff
从我记得当我上次看这个,可能是尝试在授权过程中完成一个步骤或向您发送一些数据。
I'm doing an app on appengine and it works just fine there .I have the app's URL on facebook canvas url http://xx.appspot.com/yyy/ (with trailing slash) and when the app is called from http://apps.facebook.com/appname i get
405 Method Not Allowed The method POST is not allowed for this resource.
class MainHandler(webapp2.RequestHandler): def get(self): #do stuff here def post(self): pass
app = webapp2.WSGIApplication([ ('/yyy/', MainHandler), ('/',anotherHandler),
], debug=True )
note : no such error in appengine log .
It's trying to make a POST to your app but you do not have a handler configured to receive it.
Where you have your GET
handler:
def get(self):
dostuff
you also need to have a POST
hander as well:
def post(self):
dostuff
From what I remember when I last looked at this, it's probably trying to complete a step in the authorisation process or send you some data.
这篇关于405不允许的方法此资源appengine facebook App不允许使用POST方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!