First call says: error: {"code":-1,"message":"value is type str, expected int"} Second: error: {"code":-17,"message":"Error: Wallet is already unlocked."}
-
gronager commented at 11:22 AM on March 5, 2012: none
-
sipa commented at 10:59 PM on March 5, 2012: member
Unable to reproduce with git master; which version is this?
-
TheBlueMatt commented at 11:40 PM on March 5, 2012: member
Are you using a different version of bitcoind to send the request than you are to receive the request?
-
gronager commented at 6:38 AM on March 6, 2012: none
The issue was posted by "denisx" in the chat - stupid me - forgot to ask the version...
I checked the code, and couldn't find the cause (well except if you call bitcoind with an older version and the second param of walletpassphrase is not set to type int first). I will see if I can catch him later on the chat, otherwise close it.
Btw - In my view, the RPC functions should either announce their type (system.describe) or be more large in accepting strings when called (better).
like:
if (params[1].type() != json_spirit::int_type) { if (params[1].type() == json_spirit::str_type) timeout = lexical_cast<int>(params[1].get_str()); } else timeout = params[1].get_int();Cheers,
Michael
On 06/03/2012, at 00:40, Matt Corallo wrote:
Are you using a different version of bitcoind to send the request than you are to receive the request?
Reply to this email directly or view it on GitHub: #916 (comment)
Michael Gronager, PhD Director, Ceptacle Jens Juels Gade 33 2100 Copenhagen E Mobile: +45 31 45 14 01 E-mail: gronager@ceptacle.com Web: http://www.ceptacle.com/
-
sipa commented at 4:48 PM on March 6, 2012: member
reported as solved by denisx on IRC
- sipa closed this on Mar 6, 2012
- ptschip referenced this in commit 6663c69c7a on Feb 4, 2018
- lateminer referenced this in commit a4f02ed946 on Oct 30, 2019
- MarcoFalke locked this on Sep 8, 2021