Error in CLI

Dear Blockstack community

I followed the installation guide (Mac OS X, v. 10.13) but for every prompt in my Terminal, I get this error:

{
“error”: “Unexpected error:
Traceback (most recent call last):
File “/usr/local/bin/blockstack”, line 52, in
result = run_cli()
File “/usr/local/lib/python2.7/site-packages/blockstack_client/cli.py”, line 515, in run_cli
server_port=blockstack_port, set_global=True
File “/usr/local/lib/python2.7/site-packages/blockstack_client/client.py”, line 96, in session
proxy = BlockstackRPCClient(server_host, server_port, protocol = server_protocol)
File “/usr/local/lib/python2.7/site-packages/blockstack_client/proxy.py”, line 156, in init
self.srv = TimeoutServerProxy(self.url, protocol, timeout=timeout, allow_none=True)
File “/usr/local/lib/python2.7/site-packages/blockstack_client/proxy.py”, line 135, in init
kw[‘transport’] = TimeoutTransport(protocol, timeout=timeout, use_datetime=use_datetime)
File “/usr/local/lib/python2.7/site-packages/blockstack_client/proxy.py”, line 118, in init
raise Exception(“Protocol {} not supported”.format(protocol))
Exception: Protocol blockstack price patrickholzer.id not supported
”,
“help”: “Try getting latest version of CLI with “sudo pip install blockstack --upgrade””
}

Can you help? Thank you in advance.

Hey @patrickholzer, sorry you’re having trouble!

Can you try the command again with --debug set, and paste the output here? Thanks!

Have a really similar issue here…

made some mistake configuring default vars and it keeps thinking i’m “werner.id.”

I tried uninstalling and reinstalling blockstack but still have this default configuration — all functions except blockstack -h raise this error.

don’t know how werner.id became my default. Just started with blockstack.

WITH DEBUG:
Set BLOCKSTACK_DEBUG to 1
Re-exec as "/Users/Earth/activate-blockstack/bin/python", "/Users/Earth/activate-blockstack/bin/blockstack", "configure"
[2017-11-03 09:54:44,531] [DEBUG] [spv:103] (2475.140736170685248) Using mainnet
[2017-11-03 09:54:45,432] [DEBUG] [client:95] (2475.140736170685248) Connect to werner.id://node.blockstack.org:6263
[2017-11-03 09:54:45,432] [ERROR] [blockstack:66] (2475.140736170685248) Protocol werner.id not supported
Traceback (most recent call last):
File “/Users/Earth/activate-blockstack/bin/blockstack”, line 52, in
result = run_cli()
File “/Users/Earth/activate-blockstack/lib/python2.7/site-packages/blockstack_client/cli.py”, line 515, in run_cli
server_port=blockstack_port, set_global=True
File “/Users/Earth/activate-blockstack/lib/python2.7/site-packages/blockstack_client/client.py”, line 96, in session
proxy = BlockstackRPCClient(server_host, server_port, protocol = server_protocol)
File “/Users/Earth/activate-blockstack/lib/python2.7/site-packages/blockstack_client/proxy.py”, line 156, in init
self.srv = TimeoutServerProxy(self.url, protocol, timeout=timeout, allow_none=True)
File “/Users/Earth/activate-blockstack/lib/python2.7/site-packages/blockstack_client/proxy.py”, line 135, in init
kw[‘transport’] = TimeoutTransport(protocol, timeout=timeout, use_datetime=use_datetime)
File “/Users/Earth/activate-blockstack/lib/python2.7/site-packages/blockstack_client/proxy.py”, line 118, in init
raise Exception(“Protocol {} not supported”.format(protocol))

Having a very similar issue… Need some help setting up the CLI.

I was following along the CLI tutorial on youtube. I typed the first command along with the tutorial but I guess i pressed enter at a bad time when it was going to ask me to set some key variables. This meant that when it asked me to set my protocol (“https” is the default) I input this ID name instead ( all posted below). I took out the actual name of the id because it was causing it to link that page but where it says ** its actually just the name typed in the youtube tutorial. Now I’m locked out of all CLI functions with the same error Patrick was having. Help!

I tried uninstalling and reinstalling blockstack in a new virtual environment but this protocol variable was still set.

(blockstack-env) Earth@Aris-MacBook-Air: ~$ blockstack lookup
**.id

Your client does not have enough information to connect
to a Blockstack server. Please supply the following
parameters, or press [ENTER] to select the default value.

protocol (default: “https”): api_endpoint_host (default: “localhost”): … etc.

now I always raise a protocol error whenever i try to use the CLI because trying to connect to “**.id://node.blockstack.org:6263” rather than “https://node.blockstack.org:6263

sorry to post twice about this but I found more specific info about the problem when I looked back in my terminal to where the problem started (when the protocol was wrongly set)

Hey @ari, sorry to hear you’re having trouble!

[2017-11-03 09:54:45,432] [ERROR] [blockstack:66] (2475.140736170685248) Protocol werner.id not supported

I think this is the problem. Can you take a look at your ~/.blockstack/client.ini file, and make sure that the protocol field under [blockstack-client] is either http or https?

I’ll take a look at the code for configure and try to figure out why it’s messing up your client.ini file.

@jude found the ini file – changed the value to https, and have the cli up and running. thanks so much!