python运行wordpress_xmlrpc

2024-02-24 13:45 python运行wordpress_xmlrpc已关闭评论

wordpress_xmlrpc运行异常

异常:
xml.parsers.expat.ExpatError: XML or text declaration not at start of entity: line 2, column 0

解决:
找到client.py类,将self._parser.Parse(data, 0)调整为self._parser.Parse(data.strip(), 0)

你可能感兴趣的文章

来源:每日教程, 每日一例,深入学习实用技术教程,关注公众号TeachCourse
转载请注明出处: https://teachcourse.cn/3002.html ,谢谢支持!

资源分享

浅谈短信服务SMS 浅谈短信服务SMS
ubuntu环境运行python项目 ubuntu环境运行python项目
php封装MySQL调用的详细例子 php封装MySQL调用的详细例子
品牌统一输出-从Spec到多页面 品牌统一输出-从Spec到多页面

评论已关闭!