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

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

Open
Trudko opened this issue Apr 24, 2020 · 3 comments
Open

Comments

@Trudko
Copy link

Trudko commented Apr 24, 2020

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

@Trudko
Copy link
Author

Trudko commented Apr 24, 2020

Nvm didn't add -H "http://neon.blockstack.org:20443". Might close if -H is temporary parameter in which case type error doesn't matter.

@Trudko Trudko closed this as completed Apr 24, 2020
@Trudko Trudko reopened this Apr 24, 2020
@jdbender66
Copy link

I ran into this same issue! My window wasn't large enough so I couldn't see the -H and pointer to neon. Worked once I entered the entire command. Glad to hear you worked through the same obstacle.

@yknl
Copy link
Contributor

yknl commented Jun 3, 2020

This should be resolved with latest in #40

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants