cryptean / bitcoinlib

Bitcoin Core RPC compatible, battle-tested .NET library and RPC wrapper for Bitcoin and Altcoins
MIT License
404 stars 206 forks source link

Exception while DumpWallet method #97

Closed arnezami closed 5 years ago

arnezami commented 6 years ago

Hi,

I'm developing my application that should be able to work with Bitcoin Core via RPC. Many thanks for your library at first!

I guess I found a bug:

When I call DumpWallet method, exception occured related to newtonsoft json library. In the same time wallet backup file with private keys was succesfully created!

I guess that when you send dumpwallet command, if the operation was successfull, RPC return null and newtonsoft json library didn't recognize it like JSON.

I guess before to call JsonConvert.DeserializeObject method you should to check if it's valid json string, not empty or null.

Could you check this issue please.

Thanks in advance.

screenshot_5 screenshot_6

moodmosaic commented 6 years ago

Here is a candidate source of the exception you're getting. — It may help us to troubleshoot further if you provide us with the

moodmosaic commented 5 years ago

Closing due to inactivity. Feel free to reopen if needed.