EOSIO / eosjs

General purpose library for the EOSIO blockchain.
http://eosio.github.io/eosjs
MIT License
1.43k stars 463 forks source link

A RpcError when trying to add a new permission to an existing account #1111

Open AndreyGazhala opened 2 years ago

AndreyGazhala commented 2 years ago

Hello everyone. I have an issue with eosjs pacage. I'm trying to add new permission to a test account(the name is "liontesterr4". It's valid. It has 12 characters), it created in Jungle TestNet service. I'm using this article https://developers.eos.io/manuals/eosjs/latest/how-to-guides/how-to-create-permissions. I can execute (api.rpc.get_account('liontesterr4') without any problems. The output is below Screenshot 2022-03-29 111220_1_11zon But when I try to execute this code I always have the same error Caught exception: Error: Name should be less than 13 characters, or less than 14 if last character is between 1-5 or a-j, and only contain the following symbols .12345abcde fghijklmnopqrstuvwxyz (The acc name, public key are valid) Screenshot 2022-03-29 111844_2_11zon Screenshot 2022-03-29 111904_3_11zon There is Missing Authorizations article in Troubleshooting section (EOSIO developers docks). But the information from it isn't enough to solve my problem. I say it again my test account's name and key are valid and correct. Help me please. Thanks for your time