bittensor icon indicating copy to clipboard operation
bittensor copied to clipboard

SDK: Add substrate reconnection logic

Open basfroman opened this issue 1 year ago • 1 comments

Describe the bug

After some inactive connection, the substratum loses connection and returns the error "[Errno 32] Broken pipe".

To Reproduce

  1. Create a Subtensor instance.
  2. Keep the connection inactive for a few minutes.
  3. Perform any request to the chain.

Expected behavior

The request should complete without errors.

Environment

OS Linux, MacOS.

basfroman avatar Aug 27 '24 07:08 basfroman