Error message for vest delegation not being displayed properly and confusing to use

in #utopian-io7 years ago (edited)

Metadiscussion

Is this an bug or a suggestion? The report matches the template of a bug report. I have been reporting these bad error handling as suggestions, but it does not match the template of suggestion. Therefore I am reporting this as a bug, the behaviour is not as expected. The output is not informative.

Expected behavior

I would expect to see an informative error message from the steem backend why the transaction could not be completed. I don't want to have to look in the javascript console or network console to see the error.

  • One exception I see is :

delta >= min_update: Steem Power decrease is not enough of a difference.
min_update: 204.781569 VESTS
This needs some explanation, it says the decrease is not enough. I guess I need to do at least 205 vests.

If I raise the amount it says I do not have enough it seems:

available_shares >= op.vesting_shares - delegation->vesting_shares:
Account does not have enough vesting shares to delegate.

These are both cryptic error message and I don't understand them 100% without reading the code.

If I look at my account, it shows that I have delegated most of my vests to utopian and I dont have 205 vests that I could send over.

Vesting shares 300,725.924309 VESTS
Delegated vesting shares 266,316.659252 VESTS

  • Another error that occured while trying to power up is that I could not

"4100000 plugin_exception: plugin exception↵Account: h4ck3rm1k3st33m bandwidth limit exceeded. Please wait to transact or power up STEEM

Suggestion for utopian.io

This will be used to create a suggestion for the utopian.io project later but I am going to detail it here as part of a new report.

Actual behavior

image

How to reproduce

image

image

  • Browser: Chromium 57
  • Operating system: Debian GNU/Linux Sid

Recording Of The Bug

delegate.gif

Log file

{"error":{"code":1,"message":"10 assert_exception: Assert Exception\navailable_shares >= op.vesting_shares - delegation->vesting_shares: Account does not have enough vesting shares to delegate.\n    {}\n    th_a  steem_evaluator.cpp:2205 do_apply\n\n    {\"op\":[\"delegate_vesting_shares\",{\"delegator\":\"h4ck3rm1k3st33m\",\"delegatee\":\"utopian-io\",\"vesting_shares\":\"102390.727720 VESTS\"}]}\n    th_a  database.cpp:2893 _apply_transaction\n\n    {\"trx\":{\"ref_block_num\":31820,\"ref_block_prefix\":668788155,\"expiration\":\"2018-01-14T13:44:09\",\"operations\":[[\"delegate_vesting_shares\",{\"delegator\":\"h4ck3rm1k3st33m\",\"delegatee\":\"utopian-io\",\"vesting_shares\":\"102390.727720 VESTS\"}]],\"extensions\":[],\"signatures\":[\"1f2301b94eb8be0c8e0827a01611af567fac244c00b978db4cb4ba18e64436d3ab505fff2e31e01f530f4a372383e76a02f60c097670682f91873e2df4d77d4037\"]}}\n    th_a  database.cpp:2897 _apply_transaction\n\n    {\"trx\":{\"ref_block_num\":31820,\"ref_block_prefix\":668788155,\"expiration\":\"2018-01-14T13:44:09\",\"operations\":[[\"delegate_vesting_shares\",{\"delegator\":\"h4ck3rm1k3st33m\",\"delegatee\":\"utopian-io\",\"vesting_shares\":\"102390.727720 VESTS\"}]],\"extensions\":[],\"signatures\":[\"1f2301b94eb8be0c8e0827a01611af567fac244c00b978db4cb4ba18e64436d3ab505fff2e31e01f530f4a372383e76a02f60c097670682f91873e2df4d77d4037\"]}}\n    th_a  database.cpp:660 push_transaction\n\n    {\"call.method\":\"call\",\"call.params\":[\"network_broadcast_api\",\"broadcast_transaction_synchronous\",[{\"ref_block_num\":31820,\"ref_block_prefix\":668788155,\"expiration\":\"2018-01-14T13:44:09\",\"operations\":[[\"delegate_vesting_shares\",{\"delegator\":\"h4ck3rm1k3st33m\",\"delegatee\":\"utopian-io\",\"vesting_shares\":\"102390.727720 VESTS\"}]],\"extensions\":[],\"signatures\":[\"1f2301b94eb8be0c8e0827a01611af567fac244c00b978db4cb4ba18e64436d3ab505fff2e31e01f530f4a372383e76a02f60c097670682f91873e2df4d77d4037\"]}]]}\n    th_a  websocket_api.cpp:124 on_message","data":{"code":10,"name":"assert_exception","message":"Assert Exception","stack":[{"context":{"level":"error","file":"steem_evaluator.cpp","line":2205,"method":"do_apply","hostname":"","thread_name":"th_a","timestamp":"2018-01-14T13:34:12"},"format":"available_shares >= op.vesting_shares - delegation->vesting_shares: Account does not have enough vesting shares to delegate.","data":{}},{"context":{"level":"warn","file":"database.cpp","line":2893,"method":"_apply_transaction","hostname":"","thread_name":"th_a","timestamp":"2018-01-14T13:34:12"},"format":"","data":{"op":["delegate_vesting_shares",{"delegator":"h4ck3rm1k3st33m","delegatee":"utopian-io","vesting_shares":"102390.727720 VESTS"}]}},{"context":{"level":"warn","file":"database.cpp","line":2897,"method":"_apply_transaction","hostname":"","thread_name":"th_a","timestamp":"2018-01-14T13:34:12"},"format":"","data":{"trx":{"ref_block_num":31820,"ref_block_prefix":668788155,"expiration":"2018-01-14T13:44:09","operations":[["delegate_vesting_shares",{"delegator":"h4ck3rm1k3st33m","delegatee":"utopian-io","vesting_shares":"102390.727720 VESTS"}]],"extensions":[],"signatures":["1f2301b94eb8be0c8e0827a01611af567fac244c00b978db4cb4ba18e64436d3ab505fff2e31e01f530f4a372383e76a02f60c097670682f91873e2df4d77d4037"]}}},{"context":{"level":"warn","file":"database.cpp","line":660,"method":"push_transaction","hostname":"","thread_name":"th_a","timestamp":"2018-01-14T13:34:12"},"format":"","data":{"trx":{"ref_block_num":31820,"ref_block_prefix":668788155,"expiration":"2018-01-14T13:44:09","operations":[["delegate_vesting_shares",{"delegator":"h4ck3rm1k3st33m","delegatee":"utopian-io","vesting_shares":"102390.727720 VESTS"}]],"extensions":[],"signatures":["1f2301b94eb8be0c8e0827a01611af567fac244c00b978db4cb4ba18e64436d3ab505fff2e31e01f530f4a372383e76a02f60c097670682f91873e2df4d77d4037"]}}},{"context":{"level":"warn","file":"websocket_api.cpp","line":124,"method":"on_message","hostname":"","thread_name":"th_a","timestamp":"2018-01-14T13:34:12"},"format":"","data":{"call.method":"call","call.params":["network_broadcast_api","broadcast_transaction_synchronous",[{"ref_block_num":31820,"ref_block_prefix":668788155,"expiration":"2018-01-14T13:44:09","operations":[["delegate_vesting_shares",{"delegator":"h4ck3rm1k3st33m","delegatee":"utopian-io","vesting_shares":"102390.727720 VESTS"}]],"extensions":[],"signatures":["1f2301b94eb8be0c8e0827a01611af567fac244c00b978db4cb4ba18e64436d3ab505fff2e31e01f530f4a372383e76a02f60c097670682f91873e2df4d77d4037"]}]]}}]}},"id":15}

Or another message is

{"error":{"code":1,"message":"10 assert_exception: Assert Exception\ndelta >= min_update: Steem Power decrease is not enough of a difference. min_update: 204.781569 VESTS\n    {\"min\":\"204.781569 VESTS\"}\n    th_a  steem_evaluator.cpp:2229 do_apply\n\n    {\"op\":[\"delegate_vesting_shares\",{\"delegator\":\"h4ck3rm1k3st33m\",\"delegatee\":\"utopian-io\",\"vesting_shares\":\"40956.313924 VESTS\"}]}\n    th_a  database.cpp:2893 _apply_transaction\n\n    {\"trx\":{\"ref_block_num\":31499,\"ref_block_prefix\":3242661713,\"expiration\":\"2018-01-14T13:27:45\",\"operations\":[[\"delegate_vesting_shares\",{\"delegator\":\"h4ck3rm1k3st33m\",\"delegatee\":\"utopian-io\",\"vesting_shares\":\"40956.313924 VESTS\"}]],\"extensions\":[],\"signatures\":[\"1f4d607fc2dada8c1721669df27dca4b7d6bbcc7a1bd2ace78143dffd7500d0d3a2215aab991499c72691aabaaa70bb08f66e314fb83cfde50f7df3e08a0c98682\"]}}\n    th_a  database.cpp:2897 _apply_transaction\n\n    {\"trx\":{\"ref_block_num\":31499,\"ref_block_prefix\":3242661713,\"expiration\":\"2018-01-14T13:27:45\",\"operations\":[[\"delegate_vesting_shares\",{\"delegator\":\"h4ck3rm1k3st33m\",\"delegatee\":\"utopian-io\",\"vesting_shares\":\"40956.313924 VESTS\"}]],\"extensions\":[],\"signatures\":[\"1f4d607fc2dada8c1721669df27dca4b7d6bbcc7a1bd2ace78143dffd7500d0d3a2215aab991499c72691aabaaa70bb08f66e314fb83cfde50f7df3e08a0c98682\"]}}\n    th_a  database.cpp:660 push_transaction\n\n    {\"call.method\":\"call\",\"call.params\":[\"network_broadcast_api\",\"broadcast_transaction_synchronous\",[{\"ref_block_num\":31499,\"ref_block_prefix\":3242661713,\"expiration\":\"2018-01-14T13:27:45\",\"operations\":[[\"delegate_vesting_shares\",{\"delegator\":\"h4ck3rm1k3st33m\",\"delegatee\":\"utopian-io\",\"vesting_shares\":\"40956.313924 VESTS\"}]],\"extensions\":[],\"signatures\":[\"1f4d607fc2dada8c1721669df27dca4b7d6bbcc7a1bd2ace78143dffd7500d0d3a2215aab991499c72691aabaaa70bb08f66e314fb83cfde50f7df3e08a0c98682\"]}]]}\n    th_a  websocket_api.cpp:124 on_message","data":{"code":10,"name":"assert_exception","message":"Assert Exception","stack":[{"context":{"level":"error","file":"steem_evaluator.cpp","line":2229,"method":"do_apply","hostname":"","thread_name":"th_a","timestamp":"2018-01-14T13:17:48"},"format":"delta >= min_update: Steem Power decrease is not enough of a difference. min_update: ${min}","data":{"min":"204.781569 VESTS"}},{"context":{"level":"warn","file":"database.cpp","line":2893,"method":"_apply_transaction","hostname":"","thread_name":"th_a","timestamp":"2018-01-14T13:17:48"},"format":"","data":{"op":["delegate_vesting_shares",{"delegator":"h4ck3rm1k3st33m","delegatee":"utopian-io","vesting_shares":"40956.313924 VESTS"}]}},{"context":{"level":"warn","file":"database.cpp","line":2897,"method":"_apply_transaction","hostname":"","thread_name":"th_a","timestamp":"2018-01-14T13:17:48"},"format":"","data":{"trx":{"ref_block_num":31499,"ref_block_prefix":3242661713,"expiration":"2018-01-14T13:27:45","operations":[["delegate_vesting_shares",{"delegator":"h4ck3rm1k3st33m","delegatee":"utopian-io","vesting_shares":"40956.313924 VESTS"}]],"extensions":[],"signatures":["1f4d607fc2dada8c1721669df27dca4b7d6bbcc7a1bd2ace78143dffd7500d0d3a2215aab991499c72691aabaaa70bb08f66e314fb83cfde50f7df3e08a0c98682"]}}},{"context":{"level":"warn","file":"database.cpp","line":660,"method":"push_transaction","hostname":"","thread_name":"th_a","timestamp":"2018-01-14T13:17:48"},"format":"","data":{"trx":{"ref_block_num":31499,"ref_block_prefix":3242661713,"expiration":"2018-01-14T13:27:45","operations":[["delegate_vesting_shares",{"delegator":"h4ck3rm1k3st33m","delegatee":"utopian-io","vesting_shares":"40956.313924 VESTS"}]],"extensions":[],"signatures":["1f4d607fc2dada8c1721669df27dca4b7d6bbcc7a1bd2ace78143dffd7500d0d3a2215aab991499c72691aabaaa70bb08f66e314fb83cfde50f7df3e08a0c98682"]}}},{"context":{"level":"warn","file":"websocket_api.cpp","line":124,"method":"on_message","hostname":"","thread_name":"th_a","timestamp":"2018-01-14T13:17:48"},"format":"","data":{"call.method":"call","call.params":["network_broadcast_api","broadcast_transaction_synchronous",[{"ref_block_num":31499,"ref_block_prefix":3242661713,"expiration":"2018-01-14T13:27:45","operations":[["delegate_vesting_shares",{"delegator":"h4ck3rm1k3st33m","delegatee":"utopian-io","vesting_shares":"40956.313924 VESTS"}]],"extensions":[],"signatures":["1f4d607fc2dada8c1721669df27dca4b7d6bbcc7a1bd2ace78143dffd7500d0d3a2215aab991499c72691aabaaa70bb08f66e314fb83cfde50f7df3e08a0c98682"]}]]}}]}},"id":9}

Related post

https://utopian.io/utopian-io/@h4ck3rm1k3st33m/better-sponsor-website here is the suggestion for utopian.io that resulted from this bug.



Posted on Utopian.io - Rewarding Open Source Contributors

Sort:  

Hello @h4ck3rm1k3st33m. Your report was not understood. In my opinion, it looks more like a suggestion. which means it does not belong to this category.
You stated in your contribution

"I would expect to see an informative error message from the steem backend why the transaction could not be completed. I don't want to have to look in the javascript console or network console to see the error."

You are expecting expecting an informative error you said. This makes it looks more like a suggestion. Thank you.

[utopian-moderator]

This is a bug and follows the bug template perfectly.