BitShares Forum

Main => Technical Support => Topic started by: dev.qualwebs on April 19, 2018, 02:47:24 pm

Title: Account Registration Failed
Post by: dev.qualwebs on April 19, 2018, 02:47:24 pm
Hi There,

After doing the steps for setting up faucet we successfully did it but now when trying to register a user it's returning error "Failed to create account: klp12345 - Assert Exception: itr != _by_name.end(): no method with name 'register_account'"

Code: [Select]
{"error":{"base":["Assert Exception: itr != _by_name.end(): no method with name 'register_account'"]}}
We've searched files on Faucet & BitShares UI but didn't find the API "register_account".

Thanks
Title: Re: Account Registration Failed
Post by: abit on April 20, 2018, 06:10:25 pm
"register_account" is a command / API of cli_wallet. Please make sure your faucet connected to cli_wallet correctly.
Title: Re: Account Registration Failed
Post by: dev.qualwebs on April 23, 2018, 01:13:51 pm
Thanks abit!

Yeah got it.

Now I created 2 accounts with it then suddenly it stopped working and throwing below error on bitshare UI and faucet console.

Code: [Select]
Websocket RPC Error: {"code"=>1, "message"=>"Assert Exception: base58str.substr( 0, prefix_len ) == prefix: ", "data"=>{"code"=>10, "name"=>"assert_exception", "message"=>"Assert Exception", "stack"=>[{"context"=>{"level"=>"error", "file"=>"types.cpp", "line"=>49, "method"=>"public_key_type", "hostname"=>"", "thread_name"=>"th_a", "timestamp"=>"2018-04-23T13:04:46"}, "format"=>"base58str.substr( 0, prefix_len ) == prefix: ", "data"=>{"base58str"=>"GPH5b6Xj2z8RxbNv4AYVCT3QEoRHRftRectNj22N39fHpQkxL3Ete"}}, {"context"=>{"level"=>"warn", "file"=>"websocket_api.cpp", "line"=>125, "method"=>"on_message", "hostname"=>"", "thread_name"=>"th_a", "timestamp"=>"2018-04-23T13:04:46"}, "format"=>"", "data"=>{"call.method"=>"call", "call.params"=>[0, "register_account", ["qqq", "GPH5b6Xj2z8RxbNv4AYVCT3QEoRHRftRectNj22N39fHpQkxL3Ete", "GPH5gBcKcNZyyjHM7LRwiFz8Myjq9j3uegha1yGux6egStjk4vzjA", "nathan", "nathan", 0, true]]}}]}}
!!! register_account error: {"code"=>1, "message"=>"Assert Exception: base58str.substr( 0, prefix_len ) == prefix: ", "data"=>{"code"=>10, "name"=>"assert_exception", "message"=>"Assert Exception", "stack"=>[{"context"=>{"level"=>"error", "file"=>"types.cpp", "line"=>49, "method"=>"public_key_type", "hostname"=>"", "thread_name"=>"th_a", "timestamp"=>"2018-04-23T13:04:46"}, "format"=>"base58str.substr( 0, prefix_len ) == prefix: ", "data"=>{"base58str"=>"GPH5b6Xj2z8RxbNv4AYVCT3QEoRHRftRectNj22N39fHpQkxL3Ete"}}, {"context"=>{"level"=>"warn", "file"=>"websocket_api.cpp", "line"=>125, "method"=>"on_message", "hostname"=>"", "thread_name"=>"th_a", "timestamp"=>"2018-04-23T13:04:46"}, "format"=>"", "data"=>{"call.method"=>"call", "call.params"=>[0, "register_account", ["qqq", "GPH5b6Xj2z8RxbNv4AYVCT3QEoRHRftRectNj22N39fHpQkxL3Ete", "GPH5gBcKcNZyyjHM7LRwiFz8Myjq9j3uegha1yGux6egStjk4vzjA", "nathan", "nathan", 0, true]]}}]}}

Really don't know what happened with this.

Can you please suggest something ?

regards,
Title: Re: Account Registration Failed
Post by: abit on April 24, 2018, 10:35:59 pm
You're using mixed GPH and BTS prefixes for public keys. Try stick to one of them everywhere.