Why can't xmlrpc client append item to list accessable via xmlrpc server procedure?

ⅰ亾dé卋堺 提交于 2019-12-04 19:27:05

Your XMLRPC server is raising a fault since it cannot marshal None. You need to add allow_none=True to the server constructor:

server = SimpleXMLRPCServer(("127.0.0.1", 8000),
                        requestHandler=RequestHandler, 
                        allow_none=True)

The error message is self-speaking.

append() returns None which can not be marshalled unless you specify allow_none.

Reading error messages and the API documentation

http://docs.python.org/library/simplexmlrpcserver.html

is your friend.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!