405不允许的方法此资源appengine facebook App不允许使用POST方法 [英] 405 Method Not Allowed The method POST is not allowed for this resource appengine facebook App

查看:281
本文介绍了405不允许的方法此资源appengine facebook App不允许使用POST方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在appengine上做了一个应用程序,它的工作原理很好。我在Facebook画布上的应用程序的URL url http://xx.appspot.com/yyy/ (带斜杠),当应用从 http://apps.facebook.com/appname 我得到


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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆