python_drupal_services icon indicating copy to clipboard operation
python_drupal_services copied to clipboard

xmlrpclib.Fault: <Fault 406: 'Missing required arguments: username, password'>

Open stodge opened this issue 14 years ago • 3 comments

I tried using your Drupal services but I got:

xmlrpclib.Fault: <Fault 406: 'Missing required arguments: username, password'>

This is a fresh Drupal 6 install.

Thanks

stodge avatar Feb 23 '11 01:02 stodge

I'm got the similar error: Fault 406: 'Missing required arguments: password' when tried to run example node.save.

grafov avatar Mar 22 '11 18:03 grafov

Run into some problems too.

If I use key auth, then I get Fault: <Fault 406: 'Missing required arguments: username, password'>

Without keys, only sessions auth, then I get return getattr(self, method_name)(self._build_eval_list(method_name, args)) TypeError: _build_eval_list() takes exactly 2 arguments (3 given)

Would really like to use this lib, but I can't get it to work, still new to python, so it might be me.

I ran into a diffent problem, using some other code on the net, and needed to change the following on Windows ... #nonce = "".join(random.sample(string.letters+string.digits, 10)) nonce = "".join(random.sample(string.ascii_letters+string.digits, 10))

Thanks LeeT

LeeNX avatar May 17 '11 09:05 LeeNX

Change line 39 from

return getattr(self, method_name)(self._build_eval_list(method_name, args))

to

return getattr(self, method_name)(*self._build_eval_list(method_name, args))

Change the nonce-lines as LeeT suggested and you should be well.

pstuermlinger avatar Feb 20 '12 00:02 pstuermlinger