Open xbtmatt opened 1 year ago
When your config.yaml aptos CLI profiles file is malformed, you get this error:
{ "Error": "Unexpected error: while parsing a block mapping, did not find expected key at line 219 column 87" }
Confused me for about 5-10 mins before realizing what the issue was. Would be nice to have a more informative error message
add random characters to your ~/.aptos/config.yaml file and try to run something that requires a --named-addresses flag
--named-addresses
I got the same problem when copying keys from json file to config.yaml, turn out I have to delete the "," of json file.
config.yaml
private_key: "xxx", <= remove this ,
<= remove this ,
DevEx issue, CLI
When your config.yaml aptos CLI profiles file is malformed, you get this error:
Confused me for about 5-10 mins before realizing what the issue was. Would be nice to have a more informative error message
To reproduce
add random characters to your ~/.aptos/config.yaml file and try to run something that requires a
--named-addresses
flag