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

TypeError: unsupported operand type(s) for +: 'NoneType' and 'bytes' #81

Open
RoboticMind opened this issue Feb 5, 2018 · 1 comment

Comments

@RoboticMind
Copy link

On python 3.6 When I try to open any connection I get the error in the title on line 100 in the AuthServiceProxy:
authpair = user + b':' + passwd

@JonasPf
Copy link

JonasPf commented Feb 16, 2018

Just came across this myself. This happens to me when I don't specify username/password.

The solution that worked for me was to create username/password with the rpcauth.py script as described here: https://bitcoin.stackexchange.com/questions/46782/rpc-cookie-authentication

The python code must then use that username/password as described here: https://github.com/jgarzik/python-bitcoinrpc#example

It should look somewhat like this:

bitcoinrpc.authproxy.AuthServiceProxy("http://USERNAME:[email protected]:8332")

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

2 participants