用xmlrp尝试新帖子时来自wordpress的警告

2024-10-01 04:51:58 发布

您现在位置:Python中文网/ 问答频道 /正文

当尝试用python发布到wordpress时,wordpress xmlrpc获取错误

ExpatError at /syncFeed/1/
junk after document element: line 2, column 0
Request Method: GET
Request URL:    http://localhost:8000/syncFeed/1/
Django Version: 1.4.3
Exception Type: ExpatError
Exception Value:    
junk after document element: line 2, column 0

如果调查错误信息,我会得到wordpress的回应

^{pr2}$

我不知道怎么修好它。这个代码和示例在我的mac上运行得很好,但是在生产上使用WorpPress时会出错。我试着禁用所有插件,没用


Tags: request错误lineexceptionwordpresscolumnelementdocument