且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

为什么xmlrpc客户端无法将项目追加到可通过xmlrpc服务器过程访问的列表?

更新时间:2022-10-31 22:08:50

您的XMLRPC服务器出现故障,因为它无法封送None.您需要将allow_none=True添加到服务器构造函数中:

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)