btcsuite / btcd

An alternative full node bitcoin implementation written in Go (golang)
https://github.com/btcsuite/btcd/blob/master/README.md
ISC License
6.1k stars 2.31k forks source link

Can't connect to btcd with btcctl #1993

Closed souvikhaldar closed 1 year ago

souvikhaldar commented 1 year ago

I'm running btcd without TLS on default port, but still I'm not able to connect to it using btcctl. It gives the following error:

btcctl --skipverify getblockchaininfo
Post "https://localhost:8334": http: server gave HTTP response to HTTPS client

I'm using the latest version.

sputn1ck commented 1 year ago

You would need to change from https://localhost:8334 to http://localhost:8334 in order to request without https

souvikhaldar commented 1 year ago

I used the --notls flag and it is working. Thanks @sputn1ck