Invalid multiaddr error on windows
Closed this issue · 1 comments
OwlWilderness commented
Wondering if this would be appropriate in the quickstart readme or somewhere else. I can also create an issue on the open aea repo - I was looking into a bit but realized I need to do a bit more learning first and wanted to document the work around. Thanks.
Troubleshooting
Error: Invalid multiaddr
Running the init prepends an incorrect value to the ipfs_repo on windows
autonomy init --reset --author valory --remote --ipfs --ipfs-node "/dns/registry.autonolas.tech/tcp/443/https"
[2023-09-28 20:00:29,303][INFO] (protocol, open_aea/signing:1.0.0) not found locally, downloading...
Error: Invalid multiaddr string provided, valid format: /{dns,dns4,dns6,ip4}/<host>/tcp/<port>/protocol. Provided: C:/Program Files/Git/dns/registry.autonolas.tech/tcp/443/https
Navigate to your users .aea folder and open the cli.config.yamal file
C:\Users\<user_name>\.aea\cli_config.yaml
Verify ipfs_node value = /dns/registry.autonolas.tech/tcp/443/https
author: valory
registry_config:
default: remote
settings:
local:
default_packages_path: null
remote:
default: ipfs
http:
auth_token: null
registry_api_url: null
ipfs:
ipfs_node: /dns/registry.autonolas.tech/tcp/443/https
angrybayblade commented
I think the problem is with the argument parsing on git console, I wrote following script to check this
import sys
print (sys.argv)
Running this with the multiaddr argument produces
$ py par.py "/dns/registry.autonolas.tech/tcp/443/https" "/eh"
['temp/par.py', 'C:/Program Files/Git/dns/registry.autonolas.tech/tcp/443/https', 'C:/Program Files/Git/eh']
And running the same on console produces
(open-aea) C:\Users\Admin\valory\open-aea>py par.py "/dns/registry.autonolas.tech/tcp/443/https" "/eh"
['temp/par.py', '/dns/registry.autonolas.tech/tcp/443/https', '/eh']
Can you try and run
autonomy init --reset --author valory --remote --ipfs --ipfs-node "/dns/registry.autonolas.tech/tcp/443/https"
From windows console/powershell