-
Notifications
You must be signed in to change notification settings - Fork 6
Description
I'm working through the LaylaCoin Tutorial in the Algorand Developer Portal. First of all, Layla is too cute. Second, I made it pretty smoothly through step two, creating addresses and passphrases, as well as a hash for LaylaGyoza.jpg. But, I ran into a problem on step three.
>>> from main import create
>>> from config import creator_passphrase
>>> create(creator_passphrase)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/brianhaney/node/LaylaCoin/main.py", line 22, in create
data = add_network_params(asset_details, client)
File "/Users/brianhaney/node/LaylaCoin/util.py", line 44, in add_network_params
params = client.suggested_params()
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/algosdk/algod.py", line 245, in suggested_params
return self.algod_request("GET", req, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/algosdk/algod.py", line 75, in algod_request
resp = urlopen(req)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py", line 222, in urlopen
return opener.open(url, data, timeout)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py", line 525, in open
response = self._open(req, data)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py", line 548, in _open
'unknown_open', req)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py", line 503, in _call_chain
result = func(*args)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py", line 1387, in unknown_open
raise URLError('unknown url type: %s' % type)
urllib.error.URLError: <urlopen error unknown url type: 127.0.0.1>
I'm working on debugging this now. My first impression is this is a url error, but I am not sure where exactly the url error is coming from. The error <urlopen error unknown url type: 127.0.0.1> directed me to config.py where I set the algod_address.
# Credentials to connect through an algod client
algod_address = "127.0.0.1:8080"
I got the address by running cat $ALGORAND_DATA/algod.net, but I am not sure this is the correct data to include in setting the algod_address variable. I think this is my error for not inputting the right data to the variable.