pb with xmlrpclib

Alexandre Fayolle alf at leo.logilab.fr
Mon Jul 9 03:35:06 EDT 2001


On Fri, 06 Jul 2001 18:09:45 GMT, Fredrik Lundh <fredrik at pythonware.com> wrote:
>Alexandre wrote:
>>
>> >Have you tried
>> >
>> > server.echo(unicode('\231','latin-1'))
>> >
>> >?  Dunno about xmlrpc, but it works with SOAP.
>>
>> I've just tried it and it doesn't work with xmlrpclib. :o(
>
>works on my box.  what Python version/distribution are you using?

I'm running Python 2.1 (home compiled), on an up to date RedHat 6.2 box. 
PyXML (straight out of CVS) and 4Suite 0.11.1b2 are installed. Since this 
may be an Expat-related bug, from what I see in the traceback, I'll ask 
the question on the xml-sig. 

>if you disable the catch-all except in xmlrpcserver.py [1], what error
>message do you get?

Traceback (most recent call last):
  File "/usr/lib/python2.1/SocketServer.py", line 215, in handle_request
    self.process_request(request, client_address)
  File "/usr/lib/python2.1/SocketServer.py", line 234, in process_request
    self.finish_request(request, client_address)
  File "/usr/lib/python2.1/SocketServer.py", line 246, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/usr/lib/python2.1/SocketServer.py", line 495, in __init__
    self.handle()
  File "/usr/lib/python2.1/BaseHTTPServer.py", line 266, in handle
    method()
  File "xmlrpcserver.py", line 35, in do_POST
    params, method = xmlrpclib.loads(data)
  File "/home/alf/lib/python/xmlrpclib.py", line 643, in loads
    p.feed(data)
  File "/usr/lib/python2.1/xmllib.py", line 168, in feed
    self.goahead(0)
  File "/usr/lib/python2.1/xmllib.py", line 264, in goahead
    self.syntax_error('illegal character in content')
  File "/usr/lib/python2.1/xmllib.py", line 794, in syntax_error
    raise Error('Syntax error at line %d: %s' % (self.lineno, message))
Error: Syntax error at line 6: illegal character in content

Alexandre Fayolle
-- 
LOGILAB, Paris (France).
http://www.logilab.com   http://www.logilab.fr  http://www.logilab.org
Narval, the first software agent available as free software (GPL).



More information about the Python-list mailing list