Author Topic: Account Registration Failed  (Read 1227 times)

0 Members and 1 Guest are viewing this topic.

Offline abit

  • Committee member
  • Hero Member
  • *
  • Posts: 4570
    • View Profile
    • Abit's Hive Blog
  • BitShares: abit
  • GitHub: abitmore
You're using mixed GPH and BTS prefixes for public keys. Try stick to one of them everywhere.
BitShares committee member: abit
BitShares witness: in.abit

Offline dev.qualwebs

  • Newbie
  • *
  • Posts: 8
    • View Profile
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,

Offline abit

  • Committee member
  • Hero Member
  • *
  • Posts: 4570
    • View Profile
    • Abit's Hive Blog
  • BitShares: abit
  • GitHub: abitmore
"register_account" is a command / API of cli_wallet. Please make sure your faucet connected to cli_wallet correctly.
BitShares committee member: abit
BitShares witness: in.abit

Offline dev.qualwebs

  • Newbie
  • *
  • Posts: 8
    • View Profile
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