Skip to content

Conversation

@instagibbs
Copy link
Member

@instagibbs instagibbs commented Nov 3, 2016

As of now if you're not familiar with the other error responses, you might not know why connection failed. Give common reasons for this particular error message.

@maflcko maflcko added the Docs label Nov 3, 2016
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: please remove space before :.

@laanwj
Copy link
Member

laanwj commented Nov 3, 2016

Concept ACK, but I think this message is becoming too long to be crammed into one line. I think it'd make sense to write it out over multiple lines, e.g. leave the last line for the detailed error message (if any).

@instagibbs
Copy link
Member Author

added newline to break it up some of the text

@maflcko
Copy link
Member

maflcko commented Nov 3, 2016

utACK 8f329f9

@laanwj
Copy link
Member

laanwj commented Nov 3, 2016

Tested ACK 8f329f9

@laanwj laanwj merged commit 8f329f9 into bitcoin:master Nov 3, 2016
laanwj added a commit that referenced this pull request Nov 3, 2016
…ion failure

8f329f9 Add common failure cases for rpc server connection failure (instagibbs)
@laanwj
Copy link
Member

laanwj commented Nov 23, 2016

This is a bit confusing now:

$ cli getinfo
error: couldn't connect to server
(make sure server is running and you are connecting to the correct RPC port: -1 unknown)

If you don't know better it seems like the port is unknown. I think this would be better:

$ cli getinfo
error: couldn't connect to server: unknown (-1)
(make sure server is running and you are connecting to the correct RPC port)

laanwj added a commit to laanwj/bitcoin that referenced this pull request Dec 2, 2016
Sorry for the churn on this, but the current message (introduced in bitcoin#9073)
isn't acceptable:

    $ src/bitcoin-cli getinfo
    rpc: couldn't connect to server
    (make sure server is running and you are connecting to the correct RPC port: -1 unknown)

Putting the error code after the words "RPC port" made me wonder whether
there was a port configuration issue.

This changes it to:

    $ src/bitcoin-cli getinfo
    error: couldn't connect to server: unknown (code -1)
    (make sure server is running and you are connecting to the correct RPC port)
codablock pushed a commit to codablock/dash that referenced this pull request Jan 13, 2018
…connection failure

8f329f9 Add common failure cases for rpc server connection failure (instagibbs)
lateminer pushed a commit to lateminer/bitcoin that referenced this pull request Jan 4, 2019
Sorry for the churn on this, but the current message (introduced in bitcoin#9073)
isn't acceptable:

    $ src/bitcoin-cli getinfo
    rpc: couldn't connect to server
    (make sure server is running and you are connecting to the correct RPC port: -1 unknown)

Putting the error code after the words "RPC port" made me wonder whether
there was a port configuration issue.

This changes it to:

    $ src/bitcoin-cli getinfo
    error: couldn't connect to server: unknown (code -1)
    (make sure server is running and you are connecting to the correct RPC port)
andvgal pushed a commit to energicryptocurrency/gen2-energi that referenced this pull request Jan 6, 2019
…connection failure

8f329f9 Add common failure cases for rpc server connection failure (instagibbs)
CryptoCentric pushed a commit to absolute-community/absolute that referenced this pull request Feb 15, 2019
…connection failure

8f329f9 Add common failure cases for rpc server connection failure (instagibbs)
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants