{"action":"created","issue":{"url":"https://api.github.com/repos/cryptonomex/graphene/issues/593","repository_url":"https://api.github.com/repos/cryptonomex/graphene","labels_url":"https://api.github.com/repos/cryptonomex/graphene/issues/593/labels{/name}","comments_url":"https://api.github.com/repos/cryptonomex/graphene/issues/593/comments","events_url":"https://api.github.com/repos/cryptonomex/graphene/issues/593/events","html_url":"https://github.com/cryptonomex/graphene/issues/593","id":134945382,"number":593,"title":"Issues with account create/update - possibly due to change in \"extensions\"","user":{"login":"roadscape","id":5168676,"avatar_url":"https://avatars.githubusercontent.com/u/5168676?v=3","gravatar_id":"","url":"https://api.github.com/users/roadscape","html_url":"https://github.com/roadscape","followers_url":"https://api.github.com/users/roadscape/followers","following_url":"https://api.github.com/users/roadscape/following{/other_user}","gists_url":"https://api.github.com/users/roadscape/gists{/gist_id}","starred_url":"https://api.github.com/users/roadscape/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roadscape/subscriptions","organizations_url":"https://api.github.com/users/roadscape/orgs","repos_url":"https://api.github.com/users/roadscape/repos","events_url":"https://api.github.com/users/roadscape/events{/privacy}","received_events_url":"https://api.github.com/users/roadscape/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-19T18:51:51Z","updated_at":"2016-02-20T16:17:52Z","closed_at":null,"body":"Users are reporting issues with creating accounts and updating votes, and it may be because \"the extensions field on account create/update operations is now a struct not an array\"\r\n\r\nSource: https://bitsharestalk.org/index.php/topic,21530.msg280473.html#msg280473\r\n\r\n> When trying to register a premium name an unknown error message is shown and the console shows the following error:\r\n\r\n>    !!! GrapheneApi error:  get_required_fees [Array[1], \"1.3.0\"]0: Array[1]0: Array[2]0: 51: Objectactive: Objectextensions: Array[0]fee: Objectname: \"nameredacted\"options: Objectowner: Objectreferrer: \"1.2.00000\"referrer_percent: 0registrar: \"1.2.00000\"__proto__: Objectlength: 2__proto__: Array[0]length: 1__proto__: Array[0]1: \"1.3.0\"length: 2__proto__: Array[0] Object {code: 1, message: \"7 bad_cast_exception: Bad Cast↵Invalid cast from t…array_type\"}↵    th_a  variant.cpp:575 get_object\", data: Object}code: 1data: Objectmessage: \"7 bad_cast_exception: Bad Cast↵Invalid cast from type 'array_type' to Object↵    {\"type\":\"array_type\"}↵    th_a  variant.cpp:575 get_object\"__proto__: Object {\"code\":1,\"message\":\"7 bad_cast_exception: Bad Cast\\nInvalid cast from type 'array_type' to Object\\n    {\\\"type\\\":\\\"array_type\\\"}\\n    th_a  variant.cpp:575 get_object\",\"data\":{\"code\":7,\"name\":\"bad_cast_exception\",\"message\":\"Bad Cast\",\"stack\":[{\"context\":{\"level\":\"error\",\"file\":\"variant.cpp\",\"line\":575,\"method\":\"get_object\",\"hostname\":\"\",\"thread_name\":\"th_a\",\"timestamp\":\"2016-02-19T01:28:37\"},\"format\":\"Invalid cast from type '${type}' to Object\",\"data\":{\"type\":\"array_type\"}}]}}\r\napp.js:102 ERROR AccountActions.createAccount Object {code: 1, message: \"7 bad_cast_exception: Bad Cast↵Invalid cast from t…array_type\"}↵    th_a  variant.cpp:575 get_object\", data: Object}code: 1data: Objectcode: 7message: \"Bad Cast\"name: \"bad_cast_exception\"stack: Array[1]0: Objectcontext: Objectdata: Objecttype: \"array_type\"__proto__: Objectformat: \"Invalid cast from type '${type}' to Object\"__proto__: Objectlength: 1__proto__: Array[0]__proto__: Objectmessage: \"7 bad_cast_exception: Bad Cast↵Invalid cast from type 'array_type' to Object↵    {\"type\":\"array_type\"}↵    th_a  variant.cpp:575 get_object\"__proto__: Object__defineGetter__: __defineGetter__()__defineSetter__: __defineSetter__()__lookupGetter__: __lookupGetter__()__lookupSetter__: __lookupSetter__()constructor: Object()hasOwnProperty: hasOwnProperty()isPrototypeOf: isPrototypeOf()propertyIsEnumerable: propertyIsEnumerable()toLocaleString: toLocaleString()toString: toString()valueOf: valueOf()get __proto__: get __proto__()set __proto__: set __proto__()\r\n\r\nUser pc replies:\r\n\r\n> **The reason for this is an undocumented API change in the latest release. The \"extensions\" field on account create/update operations is now a struct not an array.** Which is precisely the reason why I think one week is far from sufficient time to introduce a hard fork!\r\n\r\n> https://github.com/bitshares/bitshares-2/commit/a1e8fc07417407525482924df6b125d95c38a06f#diff-1a2d7c55b5a8f1e2bbb1c868896c94eeL117\r\n\r\nAnother one of the manifestations of this issue is that you cannot change your votes from the GUI wallet. @svk31 wonders if the appropriate changes were made in cli_wallet."},"comment":{"url":"https://api.github.com/repos/cryptonomex/graphene/issues/comments/186636939","html_url":"https://github.com/cryptonomex/graphene/issues/593#issuecomment-186636939","issue_url":"https://api.github.com/repos/cryptonomex/graphene/issues/593","id":186636939,"user":{"login":"abitmore","id":9946777,"avatar_url":"https://avatars.githubusercontent.com/u/9946777?v=3","gravatar_id":"","url":"https://api.github.com/users/abitmore","html_url":"https://github.com/abitmore","followers_url":"https://api.github.com/users/abitmore/followers","following_url":"https://api.github.com/users/abitmore/following{/other_user}","gists_url":"https://api.github.com/users/abitmore/gists{/gist_id}","starred_url":"https://api.github.com/users/abitmore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abitmore/subscriptions","organizations_url":"https://api.github.com/users/abitmore/orgs","repos_url":"https://api.github.com/users/abitmore/repos","events_url":"https://api.github.com/users/abitmore/events{/privacy}","received_events_url":"https://api.github.com/users/abitmore/received_events","type":"User","site_admin":false},"created_at":"2016-02-20T16:17:52Z","updated_at":"2016-02-20T16:17:52Z","body":"Reproduce:\r\n* Connect an older version of cli_wallet to witness_node-2.0.160216\r\n* try set_voting_proxy command\r\n```\r\nunlocked >>> set_voting_proxy abit-2fa in.abit true\r\nset_voting_proxy abit-2fa in.abit true\r\n1600759ms th_a       wallet.cpp:1896               sign_transaction     ] Caught exception while broadcasting tx 15915a9cc04ec88afbbda\r\nc5c9c3f987744221cda:  0 exception: unspecified\r\n7 bad_cast_exception: Bad Cast\r\nInvalid cast from type 'array_type' to Object\r\n    {\"type\":\"array_type\"}\r\n    th_a  variant.cpp:575 get_object\r\n    {\"error\":\"7 bad_cast_exception: Bad Cast\\nInvalid cast from type 'array_type' to Object\\n    {\\\"type\\\":\\\"array_type\\\"}\\n    th_a\r\nvariant.cpp:575 get_object\",\"data\":{\"id\":23,\"error\":{\"code\":1,\"message\":\"7 bad_cast_exception: Bad Cast\\nInvalid cast from type 'array\r\n_type' to Object\\n    {\\\"type\\\":\\\"array_type\\\"}\\n    th_a  variant.cpp:575 get_object\",\"data\":{\"code\":7,\"name\":\"bad_cast_exception\",\"m\r\nessage\":\"Bad Cast\",\"stack\":[{\"context\":{\"level\":\"error\",\"file\":\"variant.cpp\",\"line\":575,\"method\":\"get_object\",\"hostname\":\"\",\"thread_na\r\nme\":\"th_a\",\"timestamp\":\"2016-02-20T15:26:40\"},\"format\":\"Invalid cast from type '${type}' to Object\",\"data\":{\"type\":\"array_type\"}}]}}}}\r\n    th_a  state.cpp:38 handle_reply\r\n```\r\n\r\nRelated issue: \r\n```\r\nlocked >>> get_block 3710432\r\nget_block 3710432\r\n7 bad_cast_exception: Bad Cast\r\nInvalid cast from object_type to Array\r\n    {\"type\":\"object_type\"}\r\n    th_a  variant.cpp:530 get_array\r\n```\r\n"}}