Skip to content

Error: Not able to stop from state: starting #407

@lidel

Description

@lidel

Error caused by transitory state of js-ipfs breaks logic related to initIpfsClient.

Found during tests of #395 while rapidly switching between embedded and external breaks:

2018-02-26-160301_1011x542_scrot

Error comes from js-ipfs: src/core/components/stop.js#L17

Perhaps add-on/src/lib/ipfs-client/embedded.js needs something like this?

-  await node.stop()
+  try {
+    await node.stop()
+  } catch (err) {
+    console.warn('[ipfs-companion] Error while stopping embedded js-ipfs node', err)
+  }
node = null

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugA bug in existing code (including security flaws)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions