Opening IPLD Explorer → Project Apollo on a fresh browser profile (empty caches) produces:
Was able to reproduce in Firefox and Brave.
Needs analysis, I suspect CID lib versions got out of sync between webui and explorer component.
TBH the webui source code is quite confusing to read and understand. Probably it has been written by a pure genius. :)
Issue is that the cid.version is required to be 0 or 1, but it gets the Uint8Array and then it fails here https://github.com/multiformats/js-cid/blob/master/src/cid-util.js#L19 and it starts from here https://github.com/ipld/js-ipld-dag-pb/blob/master/src/dag-link/dagLink.js#L25
There is a lot going on here, I spent 3 hours debugging and I found nothing. I know my way around programming and JS but this amount of complexity is just not needed.
Little advice to the core team, if you want people to help you, make sure they can debug and understand the code.
Also for the ref https://discuss.ipfs.io/t/error-invalid-version-must-be-a-number-equal-to-1-or-0-with-js-ipfs-0-44-0/8107/1
Most helpful comment
TBH the webui source code is quite confusing to read and understand. Probably it has been written by a pure genius. :)
Issue is that the
cid.versionis required to be0or1, but it gets theUint8Arrayand then it fails here https://github.com/multiformats/js-cid/blob/master/src/cid-util.js#L19 and it starts from here https://github.com/ipld/js-ipld-dag-pb/blob/master/src/dag-link/dagLink.js#L25There is a lot going on here, I spent 3 hours debugging and I found nothing. I know my way around programming and JS but this amount of complexity is just not needed.
Little advice to the core team, if you want people to help you, make sure they can debug and understand the code.
Also for the ref https://discuss.ipfs.io/t/error-invalid-version-must-be-a-number-equal-to-1-or-0-with-js-ipfs-0-44-0/8107/1