0011ai / deailab

Decentralised AI Jupyter Lab Extension
MIT License
2 stars 1 forks source link

Some times connection refused when clicking getting results #4

Closed trungleduc closed 1 year ago

trungleduc commented 1 year ago

Screenshot 2023-07-13 at 12 09 54 Some times when clicking get results there is a connection refused and now the button is disabled and downloads of results does not happen: ipfshttpclient.exceptions.ConnectionError: 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 0x7ff26b01a320>: Failed to establish a new connection: [Errno 61] Connection refused'))

Perhaps the easiest fix is to remove the get results button and as part of the run download the results and have retry logic if connection is refused.