brig icon indicating copy to clipboard operation
brig copied to clipboard

Improve error handling during network commands

Open sahib opened this issue 7 years ago • 1 comments
trafficstars

A few points noticed:

  • During the initial connect (e.g. after startup) many different errors might happen until IPFS seems to find a suitable connection.
  • When one site is authenticated, but not the other auth: EOF is shown as not very helpful error.
  • brig remote ls does not seem to work when only one remote is erroring out.
  • When a node is offline we should timeout after some time. Timeout duration should be configurable.

sahib avatar Nov 12 '18 11:11 sahib

Just two other things:

  • brig remote ls currently opens a connection to each remote and checks if they are indeed authenticated. This is synchronous and should be done as part of an extended ping.
  • IPFS 0.4.19 supports ipfs block stat --offline Qm[...] which is a good way to check if a file is available locally. Commands like brig cat and FUSE should probably gain an option that makes them output only locally cached files. Might be even the default for FUSE. Also might be a good idea to mache IsCached a file attribute like IsPinned or IsExplicit. Although that might be confusing... I don't see a way yet to use this feature from the HTTP API though.

sahib avatar Mar 25 '19 22:03 sahib