Vim插件Vimrepress报错


Vimrepress(原Vimpress)是Vim的一款插件,用Python写成。之前用的一直好好的,今天连接到远端服务器的博客就报错。PS:连接本机服务器上的博客没问题。
报错代码如下,望高手指点~


 Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "<string>", line 185, in __check
  File "<string>", line 210, in __check
  File "<string>", line 216, in __check
  File "<string>", line 185, in __check
  File "<string>", line 664, in blog_update_config
  File "/usr/lib/python2.7/xmlrpclib.py", line 1224, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib/python2.7/xmlrpclib.py", line 1578, in __request
    verbose=self.__verbose
  File "/usr/lib/python2.7/xmlrpclib.py", line 1264, in request
    return self.single_request(host, handler, request_body, verbose)
  File "/usr/lib/python2.7/xmlrpclib.py", line 1294, in single_request
    response = h.getresponse(buffering=True)
  File "/usr/lib/python2.7/httplib.py", line 1030, in getresponse
    response.begin()
  File "/usr/lib/python2.7/httplib.py", line 407, in begin
    version, status, reason = self._read_status()
  File "/usr/lib/python2.7/httplib.py", line 371, in _read_status
    raise BadStatusLine(line)
httplib.BadStatusLine: ''

vimpress python vim

老师不给力呀 10 years, 7 months ago

在 Python httplib 的文档上看到:

exception httplib.BadStatusLine
A subclass of HTTPException. Raised if a server responds with a HTTP status code that we don’t understand.

也就是说,你访问的服务器返回了一个(httplib)看不懂的 HTTP 状态码 。由于我不知道你这里请求的地址是什么,所以你不妨用工具手工请求一下看看返回结果是什么吧。

wx75595 answered 10 years, 7 months ago

Your Answer