View Single Post
Old 11-04-2018, 11:35 PM   #1
wrench100
Member
wrench100 began at the beginning.
 
Posts: 18
Karma: 10
Join Date: Mar 2018
Device: Kindle
Suddenly getting an error with XMLRPC

Hi,

I've been using a custom plug-in for several months –*it lets me automatically create and manage wordpress posts from Calibre. I made a simple change to it today and started getting an error, so I restored to a previous, working version, but I'm getting the same error.

It's happening any time I call base.Client, like this:

wp = base.Client('http://myURL.com/xmlrpc.php','myusername','mypassword')

Here's the traceback:

File "calibre_plugins.sbl_manager.main", line 189, in unshelveBooks
File "calibre_plugins.sbl_manager.wordpress_xmlrpc.base ", line 25, in __init__
File "lib/python2.7/xmlrpclib.py", line 1243, in __call__
File "lib/python2.7/xmlrpclib.py", line 1602, in __request
File "lib/python2.7/xmlrpclib.py", line 1283, in request
File "lib/python2.7/xmlrpclib.py", line 1316, in single_request
File "lib/python2.7/xmlrpclib.py", line 1487, in parse_response
File "lib/python2.7/xmlrpclib.py", line 558, in feed
ExpatError: XML or text declaration not at start of entity: line 3, column 0

At this point, I'd just like to get the old, working version working again, but I'm totally stumped! I did no updates to Calibre or the OS.

Thanks
wrench100 is offline   Reply With Quote