python-etcd icon indicating copy to clipboard operation
python-etcd copied to clipboard

Stringify username and password

Open techhat opened this issue 9 years ago • 2 comments

While testing, I passed in a test password of 123. This caused the following error:

  File "/usr/lib/python2.7/site-packages/etcd/client.py", line 932, in _get_headers
    credentials = ':'.join((self.username, self.password))
TypeError: sequence item 1: expected string, int found

I've set my own project to stringify the username and password, but I thought it might be helpful upstream.

techhat avatar Feb 19 '16 00:02 techhat

@techhat yes definitely, I most surely didn't think people could use numeric passwords, to be honest :P

lavagetto avatar Feb 19 '16 07:02 lavagetto

Well, they shouldn't (I never would outside of testing), but they can and they will.

techhat avatar Feb 19 '16 12:02 techhat

Closing for lack of activity

lavagetto avatar Oct 30 '23 06:10 lavagetto