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.__sendself.__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_requesthost, handler, request_body, verbose File "/usr/lib/python2.7/xmlrpclib.py", line 1294, in single_request response = h.getresponsebuffering=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 BadStatusLineline
httplib.BadStatusLine: 

在 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 状态码。由于我不知道你这里请求的地址是什么,所以你不妨用工具手工请求一下看看返回结果是什么吧。

推荐使用UltraBlog.vim
从停止更新开发的时候来看,这两个插件都差不多。这两个插件我都用过一段时间。

发表评论

电子邮件地址不会被公开。 必填项已用*标注