EOS 错误笔记unsatisfied_authorization 3090003

在 jungle 上获取网络测试节点地址后,我尝试调用eosjs 创建账号。在检查钱包 unlock 并且主账号有 EOS 币之后依然出现这个错误。
我的配置如下:

//测试网络
    eosconfig:{
        httpEndpoint:"http://jungle.eosamsterdam.net:80",
        chainId: "038f4b0fc8ff18a4f0842a8f0564611f6e96e8535901dd45e43ac8691a1c4dca", // 32 byte (64 char) hex string
        // keyProvider: privatekeyList, // WIF string or array of keys..
        binaryen: binaryen,
        expireInSeconds: 60,
        broadcast: true,
        verbose: false, // API activity
        sign: true
    },

在仔细核对各种参数都正常之后,研究了大半天发觉可能是 chainId 不对。在尝试 http://jungle.eosamsterdam.net/v1/chain/get_info

{
server_version: "38d8c2b9",
chain_id: "e70aaab8997e1dfce58fbfac80cbbb8fecec7b99cf982a9444273cbc64c41473",
head_block_num: 24346073,
last_irreversible_block_num: 24345751,
last_irreversible_block_id: "01737c97aea0f12e60f224f268d501b98e4b294c7ad19ee5b1df3cb5bd3b5961",
head_block_id: "01737dd99b48aa738ff927db1ca6aaadfb44cab6908ed0792dcce83eb2ddf8f5",
head_block_time: "2019-04-19T03:11:36.500",
head_block_producer: "eosnationftw",
virtual_block_cpu_limit: 200000000,
virtual_block_net_limit: 524288000,
block_cpu_limit: 199043,
block_net_limit: 523928,
server_version_string: "v1.7.2"
}

调用获取 chainId 之后,发现果然不一致。
再统一两者 chainId 之后,终于能正常创建账号和转账了。

Error: non-error thrown: "{"code":500,"message":"Internal Service Error","error":{"code":3090003,"name":"unsatisfied_authorization","what":"Provided keys, permissions, and delays do not satisfy declared authorizations","details":[{"message":"transaction declares authority '{\"actor\":\"carrotlsp123\",\"permission\":\"active\"}', but does not have signatures for it under a provided delay of 0 ms, provided permissions [], provided keys [\"EOS8NfiqGLZ2mZZNDNgmRDrrjuBcEeWvBHwVBzZq8rtA3E4EyuFaf\"], and a delay max limit of 3888000000 ms","file":"authorization_manager.cpp","line_number":520,"method":"check_authorization"}]}}"

特此记录相应错误,帮助遇到相同问题的小伙伴。
另外提示:可以用文中 http://jungle.eosamsterdam.net/v1/chain/get_info 接口,找一个稳定的 jungle 接口,有些接口非常不稳定哟。
如果有帮助到您,点个呗。

你可能感兴趣的:(EOS 错误笔记unsatisfied_authorization 3090003)