This repository was archived by the owner on Feb 12, 2024. It is now read-only.
This repository was archived by the owner on Feb 12, 2024. It is now read-only.
Error: multihash unknown function code: 0x0 #1292
Closed
Description
- Version: master e189b72
- Platform: Linux - 4.4.0-116-generic # 140-Ubuntu SMP Mon Feb 12 21:23:04 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
- Subsystem: ipld & bitswap
Type: bug
Severity: critical
Description: Error: multihash unknown function code: 0x0
Steps to reproduce the error:
Just was running a js-ipfs node when it out of a sudden crashed. Sadly didn't have debug enabled so no debug logs for that.
Fix: More try/catch in bitswap as this is yet another critical crash
/home/maciej/js-ipfs/node_modules/cids/src/index.js:235
throw new Error(errorMsg)
^
Error: multihash unknown function code: 0x0
at Function.validateCID (/home/maciej/js-ipfs/node_modules/cids/src/index.js:235:13)
at new CID (/home/maciej/js-ipfs/node_modules/cids/src/index.js:105:9)
at decoded.wantlist.entries.forEach (/home/maciej/js-ipfs/node_modules/ipfs-bitswap/src/types/message/index.js:151:19)
at Array.forEach (<anonymous>)
at Function.BitswapMessage.deserialize (/home/maciej/js-ipfs/node_modules/ipfs-bitswap/src/types/message/index.js:149:30)
at pull.asyncMap (/home/maciej/js-ipfs/node_modules/ipfs-bitswap/src/network.js:70:43)
at /home/maciej/js-ipfs/node_modules/pull-stream/throughs/async-map.js:32:13
at callback (/home/maciej/js-ipfs/node_modules/pull-pushable/index.js:84:5)
at Function.push (/home/maciej/js-ipfs/node_modules/pull-pushable/index.js:44:7)
at decodeFromReader (/home/maciej/js-ipfs/node_modules/pull-length-prefixed/src/decode.js:27:11)
Metadata
Metadata
Assignees
Labels
No labels