400 error on 'dumpdata' command with django-disqus

Receiving 400 error when issuing a 'disqus_dumpdata' command ([link][1]). Searched Google and github but I seem to be the only person whos ever had this problem. Below is my traceback. I thought it was going to be 'line 32' of 'disqus_dumpdata.py' and my shortname or api key, but it's not: (pinax073)[user@web142 mysite]$ python2.6 manage.py disqus_dumpdata --traceback Traceback (most recent call last): File "manage.py", line 28, in execute_from_command_line() File "/home/user/webapps/whw/lib/python2.6/django/core/management/__init__.py", line 429, in execute_from_command_line utility.execute() File "/home/user/webapps/whw/lib/python2.6/django/core/management/__init__.py", line 379, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/home/user/webapps/whw/lib/python2.6/django/core/management/base.py", line 191, in run_from_argv self.execute(*args, **options.__dict__) File "/home/user/webapps/whw/lib/python2.6/django/core/management/base.py", line 220, in execute output = self.handle(*args, **options) File "/home/user/envs/pinax073/lib/python2.6/site-packages/disqus/management/commands/disqus_dumpdata.py", line 32, in handle forum_list = client.get_forum_list(user_api_key=settings.DISQUS_API_KEY) File "/home/user/envs/pinax073/lib/python2.6/site-packages/disqus/api.py", line 53, in call_method return self.call(attr, **kwargs) File "/home/user/envs/pinax073/lib/python2.6/site-packages/disqus/api.py", line 79, in call response = urllib2.urlopen(request) File "/usr/local/lib/python2.6/urllib2.py", line 126, in urlopen return _opener.open(url, data, timeout) File "/usr/local/lib/python2.6/urllib2.py", line 397, in open response = meth(req, response) File "/usr/local/lib/python2.6/urllib2.py", line 510, in http_response 'http', request, response, code, msg, hdrs) File "/usr/local/lib/python2.6/urllib2.py", line 435, in error return self._call_chain(*args) File "/usr/local/lib/python2.6/urllib2.py", line 369, in _call_chain result = func(*args) File "/usr/local/lib/python2.6/urllib2.py", line 518, in http_error_default raise HTTPError(req.get_full_url(), code, msg, hdrs, fp) urllib2.HTTPError: HTTP Error 400: BAD REQUEST > 400: ('Bad Request', 'Bad request syntax or unsupported method') Looking at line 77,78,79 of my api.py file everything looks good. What could cause this? request = self._get_request(url, self.METHODS[method], **params) try: response = urllib2.urlopen(request) [1]: http://django-disqus.readthedocs.org/en/latest/commands.html

以上就是400 error on 'dumpdata' command with django-disqus的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » JSON 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准