bittensor
bittensor copied to clipboard
SDK: Add substrate reconnection logic
Describe the bug
After some inactive connection, the substratum loses connection and returns the error "[Errno 32] Broken pipe".
To Reproduce
- Create a Subtensor instance.
- Keep the connection inactive for a few minutes.
- Perform any request to the chain.
Expected behavior
The request should complete without errors.
Environment
OS Linux, MacOS.