Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
stodge opened this issue Feb 23, 2011 · 3 comments

Comments

@stodge
Copy link

stodge commented Feb 23, 2011

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

@grafov
Copy link

grafov commented Mar 22, 2011

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

@LeeNX
Copy link

LeeNX commented May 17, 2011

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

@pstuermlinger
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants