ardriveapp / ardrive-cli

The ArDrive Command Line Interface (CLI) is a Node.js application for terminal-based ArDrive workflows. It also offers utility operations for securely interacting with Arweave wallets and inspecting various Arweave blockchain conditions.
Apache License 2.0
81 stars 15 forks source link

SyntaxError: Unexpected token � in JSON at position 0 #270

Closed esserme closed 2 years ago

esserme commented 2 years ago

Hi Team, Im unable to reference the wallet JSON file in any command, get-address create-manifest etc

The file was created using a seedphrase generated from the CLI. Any insight on why this is being thrown? image

fedellen commented 2 years ago

Hey @esserme !

This issue was resolved in the v1.9.0 release. Fixed in this PR: https://github.com/ardriveapp/ardrive-cli/pull/250

You can re-run the generate-wallet command on your seedphrase and it will now generate the correct wallet shape. If that isn't an option and you're trying to recover your wallet, you can edit the json file and remove the outer object { jwk: }

e.g:


- {
-    jwk: 
    {
    "kty": "RSA" // ...
    }
- }