Rpc not working on 0.17.1 #15037

issue diadal opened this issue on December 26, 2018
  1. diadal commented at 8:14 AM on December 26, 2018: none
    curl --user test:test --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getbalance", "params": ["*", 1] }' -H 'content-type: text/plain;' http://127.0.0.1:8332/
    curl: (7) Failed to connect to 127.0.0.1 port 8332: Connection refused
    
    

    But version 0.16 works

  2. MarcoFalke commented at 12:30 PM on December 26, 2018: member

    How did you set the rpc username and rpc password? In the configuration file they might be network specific.

  3. diadal commented at 12:35 PM on December 26, 2018: none
    regtest=1
    server=1
    txindex=1
    whitelist=127.0.0.1
    rpcallowip=127.0.0.1
    rpcworkqueue=200
    rpcport= 8332
    rpcuser= test
    rpcpassword=test
    rpcconnect=127.0.0.1
    #rpcbind=127.0.0.1: 8332
    daemon=1
    
    #rpcbind=0.0.0.0
    deprecatedrpc=accounts
    deprecatedrpc=addwitnessaddress
    deprecatedrpc=validateaddress
    
    
  4. MarcoFalke commented at 2:28 PM on December 26, 2018: member

    According to the release notes:

    If the following options are not in a section, they will only apply to mainnet: addnode=, connect=, port=, bind=, rpcport=, rpcbind= and wallet=. The options to choose a network (regtest= and testnet=) must be specified outside of sections.

    So I guess the rpcport is not what you want it to be.

  5. NicolasDorier commented at 5:52 AM on December 27, 2018: contributor

    @diadal add [regtest] at the top of your configuration file, just after regtest=1. 0.17.0 made needless breaking change to configuration file structure.

  6. fanquake added the label Questions and Help on Dec 27, 2018
  7. fanquake commented at 12:52 AM on January 22, 2019: member

    @diadal Has your issue been resolved?

  8. fanquake closed this on Jan 22, 2019

  9. MarcoFalke locked this on Dec 16, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-21 18:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me