Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Daemon crashes on bad Hyperdrive.mount arguments with HyperdriveClient API, giving zero output.log information #78

Open
metanomial opened this issue Jun 14, 2020 · 1 comment

Comments

@metanomial
Copy link

Describe the bug
Daemon crashes when Hyperdrive.mount from the HyperdriveClient API is called with bad arguments. Nothing is stored in ~/.hyperdrive/output.log.

To Reproduce

const { HyperdriveClient } = require("hyperdrive-daemon-client");
const client = new HyperdriveClient;
void async function() {
    await client.ready();
    const drive = await client.drive.get();
    await drive.mount("foo", "bar");
    // Daemon is now crashed
}();

Expected Behavior

  1. The Daemon should handle the bad input gracefully.
  2. The Daemon should always output to file on error.

OS
Windows 10

Node version
14.3.0

Was the daemon installed from NPM or bundled with Beaker?
NPM

@brechtcs
Copy link

Does this also happen with node 12? Because judging by the information in the Readme there's still some unresolved issues with node 14, so this might be one of them.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants