steemit / steem-python

The official Python (3) library for the Steem Blockchain.
https://steem.io
MIT License
154 stars 100 forks source link

RPCError #286

Open shawnpringle opened 5 years ago

shawnpringle commented 5 years ago

Version of Python you are running

3.6.8

Version of steem-python you are running

no idea (how can I tell?)

Expected Behavior

I expected some kind of an error message, but I don't know exactly. There's no documentation for exceptional circumstances. Document your intentions and we will have expectations. The error message asks me to report this as an error here, so I guess there is something wrong.

Actual Behavior

Unexpected exception! Please report at https://github.com/steemit/steem-python/issues -- RPCError: tx_missing_posting_auth from api.steemit.com (missing required posting authority:Missing Posting Authority leprechaun) in verify_authority failing on tx_missing_posting_auth from api.steemit.com (missing required posting authority:Missing Posting Authority leprechaun) in verify_authority tx_missing_posting_auth from api.steemit.com (missing required posting authority:Missing Posting Authority leprechaun) in verify_authority

Steps to reproduce

Too much to post here. You could probably reproduce this by doing a follow operation with a valid WIF key but not the one that corresponds to the user given for the blockchain you are using.

Desired Behavior

Exceptions should be able to communicate things to the program not just an error string to the user. It would be nice if there were sub-classes of RPCError. Such that there would be one class for each type of RPC-Error and documentation describing all of the sub-classes and what they mean.