jgarzik / python-bitcoinrpc

Python interface to bitcoin's JSON-RPC API
GNU Lesser General Public License v2.1
642 stars 307 forks source link

if there's no login and password #70

Closed GildedHonour closed 5 years ago

GildedHonour commented 7 years ago

if there's no login and password, how can I use this?

rpc_connection = AuthServiceProxy("http://%s:%s@127.0.0.1:8332"%(rpc_user, rpc_password))

passing None doesn't work.

nikcub commented 7 years ago

The client doesn't support not sending an auth header. Try '' and '' as values (None is string cast as 'None') and it it doesn't work just set a username and password on the daemon

jgarzik commented 5 years ago

This proxy is built assuming auth is required, as it is for the use cases designed