stacks.js icon indicating copy to clipboard operation
stacks.js copied to clipboard

CLI gaia_getfile not working

Open pradel opened this issue 1 year ago • 0 comments

Describe the bug

I tried to download files from Gaia using the CLI and it seems that downloading either a public or encrypted file is not working. When I run stx gaia_getfile sigle.btc https://app.sigle.io publicStories.json I am getting the following error.

Error: Non-base58 character
    at Object.decode (/Users/leo/Library/pnpm/global/5/.pnpm/[email protected]/node_modules/base-x/src/index.js:111:11)
    at Object.decode (/Users/leo/Library/pnpm/global/5/.pnpm/[email protected]/node_modules/bs58check/base.js:39:25)
    at Object.fromBase58Check (/Users/leo/Library/pnpm/global/5/.pnpm/[email protected]/node_modules/bitcoinjs-lib/src/address.js:11:29)
    at BlockstackNetwork.coerceAddress (/Users/leo/Library/pnpm/global/5/.pnpm/[email protected]/node_modules/blockstack/lib/network.js:51:59)
    at /Users/leo/Library/pnpm/global/5/.pnpm/[email protected]/node_modules/blockstack/lib/network.js:310:68
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
Non-base58 character

I tried with multiple usernames / files but same issue every time.

What version of Stacks.js are you using?

Latest @stacks/cliversion

Is the bug present in the Stacks.js CLI, Gaia hub, Connect or Blockstack Browser?

Stacks.js CLI

To Reproduce Steps to reproduce the behavior:

  1. Open termine
  2. Run stx gaia_getfile sigle.btc https://app.sigle.io publicStories.json
  3. See error

pradel avatar Dec 01 '22 10:12 pradel