'IPFS connection : ConnectionError: HTTPConnectionPool(host='localhost', port=5001)
i'm trying to connect my python program to IPFS api to mint some nft. I started the IPFS daemon on the " /ip4/127.0.0.1/tcp/5001 " but when i try to connect the client i get this error :
ConnectionError: HTTPConnectionPool(host='localhost', port=5001): Max retries exceeded with url: /api/v0/version?stream-channels=true (Caused by NewConnectionError('<ipfshttpclient.requests_wrapper.HTTPConnection object at 0x7fac0ddf97c0>: Failed to establish a new connection: [Errno 111] Connection refused'))
this is my code :
import ipfshttpclient
client = ipfshttpclient.connect()
print(client.version())
it fails on connect() function, i miss something ? what i can do for can start the connection? Thank you very much for your help.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
