You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unfortunately it looks like it may be a race condition in the 3rd party library
System.ArgumentException: The IPFS codec name 'codec-1' is already defined.
at Ipfs.Registry.Codec.Register(String name, Int32 code)
at Ipfs.MultiCodec.ReadMultiCodec(Stream stream)
at Ipfs.Cid.Read(Byte[] buffer)
at FishyFlip.Tools.Cbor.CborExtensions.ToCid(CBORObject obj)
The text was updated successfully, but these errors were encountered:
For now, we can handle it by outputting the error to the logger so the rest of the object can come through, and you can still act on the error by passing in an ILogger to the underlying Firehose class.
Since Cid is nullable, your code should already be handling cases where it could be null. I would need to look further if there's something I'm missing by not registering the types in advance, or if it is a race condition in the Ipfs library.
This should be fixed with #167 and the bump to the newest Peter.CBOR library in the last few releases. If it still happens in this release or up, feel free to reopen it.
Unfortunately it looks like it may be a race condition in the 3rd party library
The text was updated successfully, but these errors were encountered: