Hallo,
first, the Service Modul and the Browser in php works, but when i Access in python, the RPC say 'Could not find the node.'

Here is the simple Python Code;

import xmlrpclib
from pprint import pprint

# The RPC Connection
rpcserver = xmlrpclib.Server("http://www.myserver..../services/xmlrpc")

sessionid = 'XXXXXXXXXXXXXXXXXXX'

# ok, list the Services
pprint(rpcserver.system.listMethods())
['system.multicall',
 'system.methodSignature',
 'system.getCapabilities',
 'system.listMethods',
 'system.methodHelp',
 'node.load',
 'node.save',
 'node.delete',
 'system.connect',
 'system.mail',
 'taxonomy.getTree',
 'taxonomy.selectNodes',
 'user.login',
 'user.logout']

# ok, now get a Node
pprint(meerkatsvr.node.load(sessionid,60,""))
'Could not find the node.'

What is the Problem? Why dont work this simple Code?
Why say the rpc call 'Could not find the node.'?

Thanks for help.

Comments

ozon’s picture

For example, pprint(rpcserver.taxonomy.getTree(sessionid,1)) give the correct result.

ozon’s picture

Status: Active » Fixed

Ok, it was my error.
The optional field must contain some values.

Now ist works, sample;

field = ('title','status','body')
pprint(rpcserver.node.load(apikey,nid,fiel))

....here the values
Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.