I am trying to get an xmlrpc server setup in python, but my server doesnt like the request from the robot. My server reports:
code 400, message Bad request version ('encoding="UTF-8"?>')
the robot shows this error…but i think the robot side error is because the server has simply not provided a response:
I tried adding
encoding='UTF-8' to the server declaration, but i get the same error on the server
with SimpleXMLRPCServer((‘192.168.2.1’, 45330),
requestHandler=RequestHandler,allow_none=True,encoding=“UTF-8”) as server:
[functions in here]
Found it! For anyone else that stumbles across this in the future:
I had specified
:int in my xmlrpc server function registration, but i was passing in a string.
my funciton looked like this:
but I was passing in a string.
changed function to:
and it works great