Xml rpc error connection

Hi

When i tried to launch an ur script who used xml rpc, i have XMLRPC Failed with exception: unable to transport xml to server and get xml response back. Libcurl failed to execute the http post transaction, explaining failed to connect to 127.0.0.1 port 8080: connection refused.

The ur script is:

var_1 = rpc_factory(“xmlrpc”, “http://127.0.0.1:8080/RPC2”)

and my python script is

import xmlrpc
from xmlrpc.server import SimpleXMLRPCServer
import urllib

def get_data():
return 1

server = SimpleXMLRPCServer((“127.0.0.1”,8080), allow_none=True)
server.register_function(get_data, “get_data”)
server.serve_forever()

Could anyone help me ?

You may just need to look at using a different port. Based on this article port 8080 may be connected to other URCaps since they defaulted to that port.

1 Like