Skip to content
This repository was archived by the owner on Aug 1, 2023. It is now read-only.
This repository was archived by the owner on Aug 1, 2023. It is now read-only.

blockstack-cli balance - Cannot read property 'startsWith' of undefined #44

@Trudko

Description

@Trudko

I've installed Blocstack-cli Wallet per instructions . Tried to get balance but got type error instead.

Step to reproduce

  1. Run npm install -g https://github.com/blockstack/cli-blockstack#feature/stacks-2.0-tx
  2. blockstack-cli make_keychain -t
  3. Copy keyinfo.address value
  4. Run command blockstack-cli balance {addres from step 3} or really any address

Expected behavior
Either get balance of the address (0 stx) or at least got user facing error instead of type error

Environment
MacOS Catalina 10.15.4
node v10.15.3

Additional context
Errors:

TypeError: Cannot read property 'startsWith' of undefined
    at node_fetch_1.default.then.then (/Users/peter/.nvm/versions/node/v10.15.3/lib/node_modules/blockstack-cli/lib/cli.js:1981:24)
    at process._tickCallback (internal/process/next_tick.js:68:7)
Cannot read property 'startsWith' of undefined
peters-MacBook-Pro:My peter$ blockstack-cli balance 123123
TypeError: Cannot read property 'startsWith' of undefined
    at node_fetch_1.default.then.then (/Users/peter/.nvm/versions/node/v10.15.3/lib/node_modules/blockstack-cli/lib/cli.js:1981:24)
    at process._tickCallback (internal/process/next_tick.js:68:7)
Cannot read property 'startsWith' of undefined

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions