Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Error: multihash unknown function code: 0x0 #1292

Closed
mkg20001 opened this issue Apr 2, 2018 · 0 comments
Closed

Error: multihash unknown function code: 0x0 #1292

mkg20001 opened this issue Apr 2, 2018 · 0 comments

Comments

@mkg20001
Copy link
Contributor

mkg20001 commented Apr 2, 2018

  • 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)
@mkg20001 mkg20001 mentioned this issue Apr 3, 2018
mkg20001 added a commit to mkg20001/js-ipfs-bitswap that referenced this issue Apr 3, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant