我在python-social-auth
应用程序中使用django-1.8
。
当我尝试使用Instagram对用户进行身份验证时,会出现405客户端错误。
**HTTPError at /complete/instagram/**
405 Client Error: METHOD NOT ALLOWED
Request Method: GET
Request URL: http://127.0.0.1:8000/complete/instagram/?redirect_state=UwLzMumZrmutkodL8IVxpBSaqKCkR5cM&code=91ca51afffa8485580b91d756edb4b20&state=UwLzMumZrmutkodL8IVxpBSaqKCkR5cM
Django Version: 1.8.2
Exception Type: HTTPError
Exception Value: 405 Client Error: METHOD NOT ALLOWED
Exception Location: /app/portal/authexception.py in process_exception, line 14
Python Executable: /app/.heroku/python/bin/python
Python Version: 2.7.11
Python Path:
['/app',
'/app/.heroku/python/bin',
'/app/.heroku/python/lib/python2.7/site-packages/setuptools-18.7.1-py2.7.egg',
'/app/.heroku/python/lib/python2.7/site-packages/pip-7.1.2-py2.7.egg',
'/app',
'/app/.heroku/python/lib/python27.zip',
'/app/.heroku/python/lib/python2.7',
'/app/.heroku/python/lib/python2.7/plat-linux2',
'/app/.heroku/python/lib/python2.7/lib-tk',
'/app/.heroku/python/lib/python2.7/lib-old',
'/app/.heroku/python/lib/python2.7/lib-dynload',
'/app/.heroku/python/lib/python2.7/site-packages'
]
Server time: Tue, 15 Dec 2015 08:43:36 +0000
上周我的代码工作正常,但是自3-4天以来,我得到同样的错误。