BitShares Forum

Main => Technical Support => Topic started by: woodlight on October 28, 2015, 07:52:48 am

Title: I can't import my backup wallet
Post by: woodlight on October 28, 2015, 07:52:48 am
last year(8,25,2014),I bought bitshares of thousand dollars.and I had backup the wallet.now I can't restore it.it shares

Failed to restore wallet backup. Your original wallet has been restored. Error: Bad Cast (7)
Invalid cast from type 'string_type' to Object

I'm sure about the passphrase,and I tried 0.3.0 or 0.3.1 or 0.8.they all failed.

Help me!
Thanks in advance.
Title: Re: I can't import my backup wallet
Post by: xeroc on October 28, 2015, 07:59:33 am
I can recall that an early version had a slight issue when exporting the backup .. there either was a comma missing or one extra comma ..
Maybe this helps you:
https://bitsharestalk.org/index.php/topic,14121.msg183717.html#msg183717
Title: Re: I can't import my backup wallet
Post by: woodlight on October 28, 2015, 08:12:42 am
the tips is

Failed to restore wallet backup. Your original wallet has been restored. Error: Bad Cast (7)
Invalid cast from type 'string_type' to Object

not

Failed to restore wallet backup. Your original wallet has been restored. Error: invalid password (20001)
Invalid password!

Should I submit the json file to the forum?
Title: Re: I can't import my backup wallet
Post by: xeroc on October 28, 2015, 08:24:13 am
Should I submit the json file to the forum?
Even though the keys are encrypted I would not recommend to do so ..
but you can safely paste the last few lines so that we can check for the comma issue
Title: Re: I can't import my backup wallet
Post by: woodlight on October 28, 2015, 08:27:59 am
    },
    "is_my_account": true,
    "approved": 0,
    "is_favorite": false,
    "block_production_enabled": false
  }
},
]

there is a comma.so I think there is some other problem.
Title: Re: I can't import my backup wallet
Post by: xeroc on October 28, 2015, 09:07:26 am
yeha .. remove the very last comma and try to import again
Title: Re: I can't import my backup wallet
Post by: woodlight on October 28, 2015, 09:28:28 am
It works,Thanks a lot!