Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: scalaz on March 02, 2016, 04:58:51 PM



Title: Nonzero exit code
Post by: scalaz on March 02, 2016, 04:58:51 PM
Hello!

Bitcoin RPC return message like this - Nonzero exit code: 3

Could you please recommend link with all "Nonzero exit code: 3" for bitcoin ?

Thanks!


Title: Re: Nonzero exit code
Post by: ca333 on March 04, 2016, 01:27:27 PM
Hello!

Bitcoin RPC return message like this - Nonzero exit code: 3

Could you please recommend link with all "Nonzero exit code: 3" for bitcoin ?

Thanks!

you can find all rpc error codes in  src/rpc/protocol.h (https://github.com/bitcoin/bitcoin/blob/62f2d769e45043c1f262ed45babb70fe237ad2bb/src/rpc/protocol.h#L31)


Title: Re: Nonzero exit code
Post by: scalaz on March 04, 2016, 04:27:56 PM
Hello!

Bitcoin RPC return message like this - Nonzero exit code: 3

Could you please recommend link with all "Nonzero exit code: 3" for bitcoin ?

Thanks!

you can find all rpc error codes in  src/rpc/protocol.h (https://github.com/bitcoin/bitcoin/blob/62f2d769e45043c1f262ed45babb70fe237ad2bb/src/rpc/protocol.h#L31)

Thanks, yes, but how about detailed description ?
for example

RPC_TYPE_ERROR                  = -3,  //! Unexpected type was passed as parameter

Can I find more details about error code ?


Title: Re: Nonzero exit code
Post by: grue on March 04, 2016, 11:44:05 PM
We can't help you if you don't tell us what request you're sending.


Title: Re: Nonzero exit code
Post by: ca333 on March 05, 2016, 10:58:53 AM
Hello!

Bitcoin RPC return message like this - Nonzero exit code: 3

Could you please recommend link with all "Nonzero exit code: 3" for bitcoin ?

Thanks!

you can find all rpc error codes in  src/rpc/protocol.h (https://github.com/bitcoin/bitcoin/blob/62f2d769e45043c1f262ed45babb70fe237ad2bb/src/rpc/protocol.h#L31)

Thanks, yes, but how about detailed description ?
for example

RPC_TYPE_ERROR                  = -3,  //! Unexpected type was passed as parameter

Can I find more details about error code ?

this error means you used a wrong/unexpected parameter type. but this RPC_TYPE_ERROR can happen in different cases. only to name 2 of them: "Invalid address", "Invalid amount for send", ...

like grue said (https://bitcointalk.org/index.php?topic=1384026.msg14099273#msg14099273) already - you have to post the parameter you used and the corresponding rpc method. without this information we can not help you further.